#How do I use console commands as an admin?

1 messages · Page 1 of 1 (latest)

shut cosmos
#

As the title says, how do I use admin commands in a server I've been made admin in? Apparently all I have to do is type /start in chat, however it's not doing anything.

autumn leafBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

shut cosmos
fading blade
#

you should have "[Server Admin]" next to your nickname in tab

shut cosmos
#

Hmm, seems like I don't. I'll message the owner again

#

thanks for your help

#

one more question, is it "PlayerRoles" 3 for admin, or "PlayerRoles" 1?

fading blade
#
namespace BattleBitAPI.Common
{
    public enum Roles : ulong
    {
        None = 0,

        Admin = 1 << 0,
        Moderator = 1 << 1,
        Special = 1 << 2,
        Vip = 1 << 3,
    }
}
#

it's 1 apparently

#

admin 1, mod 2

shut cosmos
#

awesome, thanks mate.

prisma ledge
#

It’s a flags enum.
So the first bit in the ulong decides if you are admin or not, second one if you are mod etc

shut cosmos
#

Hi again. Apologies, I didn't see your message Julgers.
I'm still trying to figure out this issue

#

Is this set up correctly? The second number is my SteamID, and we're trying to make me an Admin
We also tried setting me to 3 and that didn't work either

#

The file is /PlayerPermissions/Configuration .json

#

Additionally, would adding PlayersToStart=1 to the server .conf file work in making servers start instantly?

fading blade
#

@prisma ledge

shut cosmos
#

@prisma ledge Sorry to ping you again, not sure if you saw the last one though

prisma ledge
#

No worries

prisma ledge
#

becuase that does not seem like our built-in permission file

#

The built-in permissions file

In the directory that has the server and the logs etc., make a file called permissions.txt if that is not already there.
Inside that file, you can put lines in the following format:

<Steam64ID>=admin
<Steam64ID>=moderator
#

Alternatively, you can handle it in the API and setting the bitflag enum, but I have not personally tried that so I am not really able to help much on that