#Can I get the server rank for someone who isn't online using their userid?
1 messages · Page 1 of 1 (latest)
What rank? Like if they are admin/moderator?
yes
PermissionsHandler.Members
if (!ServerStatic.PermissionsHandler.Members.TryGetValue(playerStringId, out string group))
return string.Empty;
if (!ServerStatic.PermissionsHandler.Groups.TryGetValue(group, out var userGroup))
return string.Empty;
return userGroup.BadgeColor
where do I get the permissions handler from? it is not static and doesnt appear to have a getter for its singleton
ServerStatic.PermissionsHandler
thanks, gonna try it now
it works, thanks!
although I also realised that users who get their ranks from scpdiscord rather than the game obviously wont show up there so gonna have to make another system to get them
hate it when you think youre done but theres a whole other issue you just didnt think about
it loading from the yaml config
yeah I know, and I need to check that too for players that arent set by scpdiscord