Hi @Wulf. If you (or anyone else that knows) sees this, can you help me understand how this code from the plugin works?
foreach (var player in players.All)
{
if (!player.HasPermission("whitelist.allowed")) continue;
permission.GrantUserPermission(player.Id, permAllow, null);
permission.RevokeUserPermission(player.Id, "whitelist.allowed");
}
permAllow is set to "whitelist.allow", but the hasPermission is looking for "whitelist.allowed". I must be missing something, because the way I'm reading this is that no one has "allowed", and everyone connected will get "allow" and therefore whitelisted if you've already been able to connect?
Thanks for any help, would like to understand more about the permissions system.
foreach (var player in players.All)
{
if (!player.HasPermission("whitelist.allowed")) continue;
permission.GrantUserPermission(player.Id, permAllow, null);
permission.RevokeUserPermission(player.Id, "whitelist.allowed");
}
permAllow is set to "whitelist.allow", but the hasPermission is looking for "whitelist.allowed". I must be missing something, because the way I'm reading this is that no one has "allowed", and everyone connected will get "allow" and therefore whitelisted if you've already been able to connect?
Thanks for any help, would like to understand more about the permissions system.