Admin not turning on
Hello,
No console logs or whatsoever errors -- Problem is that the player (with the permission) running /admin will get stuck on a loop where it will just make him admin statu disable, or with some luck if the person achieve to get into the admin status, then he cannot disable it anymore.
My .cfg
{
"Valid Commands": [
"toggle",
"staff",
"admin"
],
"Automatically Give Admin": true,
"Default Time for Admins When Joining": 12.0
}
I also added some modification the .cs, but even with the untouched one this will do the same.
permission.AddUserGroup(bp.UserIDString, "admin");
bp.SetPlayerFlag(BasePlayer.PlayerFlags.IsAdmin, true);
bp.net.connection.authLevel = 2;
bp.Command("admintime " + _config.DefaultTime);
bp.Command("tcmap update");
_adminList.Add(bp);
bp.SendNetworkUpdateImmediate();
bp.ChatMessage(lang.GetMessage("ToggledOn", this, bp.UserIDString).Replace("{commands}", String.Join(", ", _config.Commands)));
break;
case false:
permission.RemoveUserGroup(bp.UserIDString, "admin");
bp.SetPlayerFlag(BasePlayer.PlayerFlags.IsAdmin, false);
bp.net.connection.authLevel = 0;
bp.Command("admintime -1");
bp.Command("adminfog -1");
bp.Command("adminrain -1");
bp.Command("adminwind -1");
bp.Command("adminclouds -1");
bp.Command("tcmap clear");
Screenshot of the issue (1):

Screenshot of the issue (2):

Except by disconnecting/reconnecting, i found no way of using the plugin.
tomhudr u adding the perms to the group or the person ??
I added the perm ( adminstatusmanager.use ) to the person. Not the group. The group has vanish, radar and so perms.
saintmichel13hi experienced the same. i added perm to the person (me - owner) after i disable, i cant re enable the admin
Let's just wait for the developer or someone experienced can answer. I've removed the plugin from my servers, but i really want to use it. My moderators love the concept and it would be useful.
Ryz0rTry the newest update I published
I did, it just keeps toggling off never on. I even went ahead and deleted config file so new update creates the new config and same thing. It seems to work but never toggles on, just off.
@saintmichel13 Have you tried the plugin update ? I've still not, have you any feedback ?
Edit,
I've tried and the same bug still happens.
Ryz0rTry the newest update I published
Any ideas?
Merged post
Can you guys try now?
- 1
- 2