Add /listranked
KarlOfDuty opened this issue · 7 comments
KarlOfDuty commented
Same as /list but only showing online users who have server roles.
Closes #85
KarlOfDuty commented
Blocked by northwood-studios/NwPluginAPI#240
TiBarification commented
Is it possible to use Reflection to handle it ?
KarlOfDuty commented
It is, but I don't want to resort to such hacks. I want to rely on what is officially provided by the modding api.
TiBarification commented
Another approach to go through
var permissionHandler = ServerStatic.GetPermissionsHandler();
if (permissionHandler != null)
{
var userGroup = permissionHandler.GetUserGroup(player.UserId);
// ...
}
KarlOfDuty commented
It was some time ago now but im pretty sure I tried that and it didnt work.
TiBarification commented
Anyway it is requires to go through iteration instead of direct calling object, and thats not nice.
KarlOfDuty commented
Whoops didnt mean to delete that comment, but basically, im sick so cant verify today but im pretty sure it always returned null or an empty object.