Admin not turning on
Hi, admin was able to turn off but when i try again won't turn 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.

r u adding the perms to the group or the person ??
tomhud
r 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.

hi experienced the same. i added perm to the person (me - owner) after i disable, i cant re enable the admin
saintmichel13
hi 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.

agree - i have mods who want to play also and are lazy to use alt accounts haha. this is a simple compromise
Admin Status is not working for me im not sure if im doing something wrong. I gave myself permission to use commands but when i type command to toggle admin it just keeps repeating its toggled off.
Try the newest update I published
Ryz0r
Try 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.

@
Ryz0r
Try the newest update I published

Any ideas?

I'm having the same problem. We just need to wait for a fix from Ryz0r.
I will take a look at this shortly.

Merged post

Can you guys try now?
It is working for me with the last update.