From a470456dccc6a4f44e9a694bc2965c16de681628 Mon Sep 17 00:00:00 2001 From: anth64 Date: Sun, 12 Jul 2026 16:23:34 +0200 Subject: [PATCH] refactor: revert claimlink admin info to a plain stub --- ClaimLink/ClaimLinkChatCommand.cs | 46 +------------------------------ 1 file changed, 1 insertion(+), 45 deletions(-) diff --git a/ClaimLink/ClaimLinkChatCommand.cs b/ClaimLink/ClaimLinkChatCommand.cs index a89440a..e9b0e1c 100644 --- a/ClaimLink/ClaimLinkChatCommand.cs +++ b/ClaimLink/ClaimLinkChatCommand.cs @@ -127,49 +127,5 @@ public static class ClaimLinkChatCommand public static TextCommandResult AdminUnlink(TextCommandCallingArgs args) => TextCommandResult.Success("stub: claimlink admin unlink"); public static TextCommandResult AdminKick(TextCommandCallingArgs args) => TextCommandResult.Success("stub: claimlink admin kick"); public static TextCommandResult AdminTransferOwnership(TextCommandCallingArgs args) => TextCommandResult.Success("stub: claimlink admin transferownership"); - public static TextCommandResult AdminInfo(TextCommandCallingArgs args) - { - ClaimLinkModSystem.Logger.Notification("Number of Claims: {0}", ClaimLinkModSystem.LandClaimAPI.All.Count); - foreach (LandClaim claim in ClaimLinkModSystem.LandClaimAPI.All) - { - string padding = new string('-', claim.Description.Length); - ClaimLinkModSystem.Logger.Notification("---{0}---", claim.Description); - ClaimLinkModSystem.Logger.Notification("Owner (Entity ID): {0}", claim.OwnedByEntityId); - ClaimLinkModSystem.Logger.Notification("Owner (Player UID): {0}", claim.OwnedByPlayerUid); - ClaimLinkModSystem.Logger.Notification("Last Known Owner Name: {0}", claim.LastKnownOwnerName); - ClaimLinkModSystem.Logger.Notification("Permitted Player Group IDs({0})", claim.PermittedPlayerGroupIds.Count); - foreach (var groupId in claim.PermittedPlayerGroupIds) - { - ClaimLinkModSystem.Logger.Notification(" <{0},{1}>", groupId.Key, groupId.Value); - } - ClaimLinkModSystem.Logger.Notification("Permitted Player UIDs({0})", claim.PermittedPlayerUids.Count); - foreach (var permittedPlayerUid in claim.PermittedPlayerUids) - { - ClaimLinkModSystem.Logger.Notification(" <{0},{1}>", permittedPlayerUid.Key, permittedPlayerUid.Value); - } - ClaimLinkModSystem.Logger.Notification("Permitted Player Last Known Player Name({0})", claim.PermittedPlayerLastKnownPlayerName.Count); - foreach (var permittedPlayerLastKnownPlayerName in claim.PermittedPlayerLastKnownPlayerName) - { - ClaimLinkModSystem.Logger.Notification(" <{0},{1}>", permittedPlayerLastKnownPlayerName.Key, permittedPlayerLastKnownPlayerName.Value); - } - ClaimLinkModSystem.Logger.Notification("Owner (Player Group UID): {0}", claim.OwnedByPlayerGroupUid); - ClaimLinkModSystem.Logger.Notification("Protection Level: {0}", claim.ProtectionLevel); - ClaimLinkModSystem.Logger.Notification("Center: ({0}, {1}, {2})", claim.Center.X, claim.Center.Y, claim.Center.Z); - ClaimLinkModSystem.Logger.Notification("Size XYZ: ({0})", claim.SizeXYZ); - ClaimLinkModSystem.Logger.Notification("Size XZ: ({0})", claim.SizeXZ); - ClaimLinkModSystem.Logger.Notification("Areas ({0}):", claim.Areas.Count); - for (int i = 0; i < claim.Areas.Count; i++) - { - var area = claim.Areas[i]; - ClaimLinkModSystem.Logger.Notification( - " [{0}] Min: ({1}, {2}, {3}) Max: ({4}, {5}, {6})", - i, area.X1, area.Y1, area.Z1, area.X2, area.Y2, area.Z2 - ); - } - ClaimLinkModSystem.Logger.Notification("---{0}---\n", padding); - } - - - return TextCommandResult.Success("stub: claimlink admin info"); - } + public static TextCommandResult AdminInfo(TextCommandCallingArgs args) => TextCommandResult.Success("stub: claimlink admin info"); }