Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f0e4bd687 | ||
|
|
725f450da7 |
@@ -1034,6 +1034,9 @@ public static class ClaimLinkChatCommand
|
|||||||
return string.IsNullOrEmpty(claim.Description) ? $"claim {claimIndex}" : claim.Description;
|
return string.IsNullOrEmpty(claim.Description) ? $"claim {claimIndex}" : claim.Description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static string PlayerNameForUid(string uid) =>
|
||||||
|
ClaimLinkModSystem.PlayerData.GetPlayerDataByUid(uid)?.LastKnownPlayername ?? uid;
|
||||||
|
|
||||||
private static string FormatInfo(string groupName, int groupId, bool showDetails)
|
private static string FormatInfo(string groupName, int groupId, bool showDetails)
|
||||||
{
|
{
|
||||||
int memberCount = GroupMemberCount(groupId);
|
int memberCount = GroupMemberCount(groupId);
|
||||||
@@ -1045,7 +1048,7 @@ public static class ClaimLinkChatCommand
|
|||||||
|
|
||||||
foreach (string uid in GroupMemberUids(groupId))
|
foreach (string uid in GroupMemberUids(groupId))
|
||||||
{
|
{
|
||||||
string name = ClaimLinkModSystem.World.PlayerByUid(uid)?.PlayerName ?? uid;
|
string name = PlayerNameForUid(uid);
|
||||||
|
|
||||||
if (!showDetails)
|
if (!showDetails)
|
||||||
{
|
{
|
||||||
@@ -1070,7 +1073,7 @@ public static class ClaimLinkChatCommand
|
|||||||
sb.AppendLine("Buffer access granted:");
|
sb.AppendLine("Buffer access granted:");
|
||||||
foreach (var (uid, flags) in permittedPlayers)
|
foreach (var (uid, flags) in permittedPlayers)
|
||||||
{
|
{
|
||||||
string name = ClaimLinkModSystem.World.PlayerByUid(uid)?.PlayerName ?? uid;
|
string name = PlayerNameForUid(uid);
|
||||||
sb.AppendLine($" {name}: {DescribeAccess(flags)}");
|
sb.AppendLine($" {name}: {DescribeAccess(flags)}");
|
||||||
}
|
}
|
||||||
foreach (var (targetGroupId, flags) in permittedGroups)
|
foreach (var (targetGroupId, flags) in permittedGroups)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"anth64"
|
"anth64"
|
||||||
],
|
],
|
||||||
"description": "Link claims together with groups.",
|
"description": "Link claims together with groups.",
|
||||||
"version": "0.5.0",
|
"version": "0.5.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"game": "1.22.5",
|
"game": "1.22.5",
|
||||||
"commandhook": "2.1.0"
|
"commandhook": "2.1.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user