#GroupName

1 messages · Page 1 of 1 (latest)

worn zodiac
#

If I want to get the player's group name it gives me nothing, how van I fix this?

errant cipher
#

Annnd does the target player have one..?

worn zodiac
#

Yes

#

I have the owner

#

If I get home I will send the code

olive dock
#

GroupName is what is networked to the clients Hmm

olive dock
#

mmm

#

@errant cipher maybe it shouldnt be Network__myText

#

cuz thats whats displayed

#

not the name of the group

worn zodiac
olive dock
#
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 ?

worn zodiac
olive dock
#

what error

olive dock
worn zodiac
#

I'm on my way to home, I will send it

worn zodiac
olive dock
#

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

worn zodiac
#

Around 15 min and I will be home

olive dock
#

@errant cipher :3

errant cipher
#

hm?

olive dock
#

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

errant cipher
#

Current GroupName doesnt work?

olive dock
#

it should work but apparently it doesnt ? but at the minimum the docs is confusing

#

this docs would be more accurate i think ?

errant cipher
#

Hmmm

#

ill test that later

olive dock
#

can i modify the docs in my pr ?

errant cipher
#

Sure

olive dock
errant cipher
#

But test that it works xd

olive dock
#

wtf is this emoji

#

😭

errant cipher
olive dock
#

i typed yippie

#

that is NOT what i wanted

#

this one

worn zodiac
#

So I earlier I tried this and also it gave me nothing
player.ReferenceHub.serverRoles.Group

worn zodiac
#

Yesterday

olive dock
#

nono

#

code

#

when

#

what event

worn zodiac
#

Ahhh

#

Still after round start

olive dock
#

😭

#

wtf

worn zodiac
#

But quickly I will run it

olive dock
#

i can test a bit too ig

worn zodiac
#

Bruh

#

I can't send the error

#

Bc dc automod

olive dock
#

uh

worn zodiac
#

Field not found: UserGroup .ServerRoles.Group Due to: Could not find field in class

olive dock
#

what

worn zodiac
#

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

olive dock
#

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

deft zodiac
#

Does that code help you?

uneven totem
past flame
#

what is dot li ?

#

". "

#

dot ligne ?