#GroupName
1 messages · Page 1 of 1 (latest)
Annnd does the target player have one..?
GroupName is what is networked to the clients 
is the tag hidden?
mmm
@errant cipher maybe it shouldnt be Network__myText
cuz thats whats displayed
not the name of the group
No
get => ServerStatic.PermissionsHandler.GetUserGroup(UserId)?.Name ?? string.Empty;
idk if thatd be better

medve if you can test can you try that ^
also
when do you do the code ?
Yeah this was the previous code but rider gives me error for this one
what error
this is the most important question tho ^
I'm on my way to home, I will send it
After the round started

okay then yea its an issue with the code here
which idk why thats empty
ServerStatic.PermissionsHandler.GetUserGroup(UserId)?.Name ?? string.Empty;
ServerStatic.PermissionsHandler.Members.TryGetValue(UserId, out string group) ? group : string.Empty;
(nvm theres just:)
UserGroup?.Name ?? string.Empty;
idk which is better
Around 15 min and I will be home
@errant cipher :3
hm?
opinion on
gets the actual name of the group
and then you could have GroupDisplayText
or smth
to change the text displayed
oh bruh theres legit PermissionsGroupName
😭
didnt see that
Current GroupName doesnt work?
it should work but apparently it doesnt ? but at the minimum the docs is confusing
this docs would be more accurate i think ?
can i modify the docs in my pr ?
Sure

But test that it works xd
🤨
So I earlier I tried this and also it gave me nothing
player.ReferenceHub.serverRoles.Group
when did you do this
tho
Yesterday
But quickly I will run it
i can test a bit too ig
uh
Field not found: UserGroup .ServerRoles.Group Due to: Could not find field in class
what
I get this error for this code: cs var groupName = player.GroupName; Logger.Debug($"Group name: {groupName}, " + player.Nickname + " " + player.ReferenceHub.serverRoles.Group);
I'm kinda a beginner so it could be that I did someting wrong
ill test rq
when my client updates
[2025-02-12 15:48:25.925 +01:00] [INFO] [SecretAPI] ----------
[2025-02-12 15:48:25.940 +01:00] [INFO] [SecretAPI] Round Started
[2025-02-12 15:48:25.956 +01:00] [INFO] [SecretAPI] Dedicated Server
[2025-02-12 15:48:25.971 +01:00] [INFO] [SecretAPI] Null group
[2025-02-12 15:48:25.987 +01:00] [INFO] [SecretAPI] Null Permission Group Name
[2025-02-12 15:48:26.002 +01:00] [INFO] [SecretAPI]
[2025-02-12 15:48:26.017 +01:00] [INFO] [SecretAPI] Evelyn
[2025-02-12 15:48:26.033 +01:00] [INFO] [SecretAPI] UserGroup
[2025-02-12 15:48:26.048 +01:00] [INFO] [SecretAPI] owner
[2025-02-12 15:48:26.064 +01:00] [INFO] [SecretAPI] SERVER OWNER
[2025-02-12 15:48:26.079 +01:00] [INFO] [SecretAPI] ----------
[2025-02-12 15:48:26.095 +01:00] [INFO] [SecretAPI] ----------
[2025-02-12 15:48:26.110 +01:00] [INFO] [SecretAPI] Spawned Handle:
[2025-02-12 15:48:26.127 +01:00] [INFO] [SecretAPI] Evelyn
[2025-02-12 15:48:26.142 +01:00] [INFO] [SecretAPI] UserGroup
[2025-02-12 15:48:26.158 +01:00] [INFO] [SecretAPI] owner
[2025-02-12 15:48:26.173 +01:00] [INFO] [SecretAPI] SERVER OWNER
[2025-02-12 15:48:26.189 +01:00] [INFO] [SecretAPI] ----------
Dedicated is in Player.list, was likely that
Unfortunately dot li in a blacklisted tld 
what ?
what is dot li ?
". "
dot ligne ?
