[SOLVED]How can i give admin-rights to a player using the mysql-database?

Python 3 Server Controller for Trackmania and Shootmania for script-only modes.

Moderators: TheM, toffe, NADEO

Post Reply
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

[SOLVED]How can i give admin-rights to a player using the mysql-database?

Post by o0Julia0o »

hi, How can i give admin-rights to a player using the mysql-database? Which table do i have to edit?

Over here maybe?
https://i.imgur.com/DqcVaut.png

I found out: Fill in a 1 to the level-field of the player.

But if i click on the buttons(Pyplanet settings and GameSettings) buttom right, i get an error-message:
https://i.imgur.com/PsYbV5Q.png
Last edited by o0Julia0o on 29 Jul 2020, 09:45, edited 1 time in total.
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: How can i give admin-rights to a player using the mysql-database?

Post by toffe »

Use the newly introduced /claim command
Start up PyPlanet in the newest version and wait for the console message containing a claim command. Use this to gain admin rights.
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

Re: How can i give admin-rights to a player using the mysql-database?

Post by o0Julia0o »

And how do i do this without beeing able to write something in the chat ingame?

Is the database-edit correct? If i join the server it says: operator Julia is joining... or something like that. But if i click on the buttons(Pyplanet settings and GameSettings) buttom right, i get an error-messages - like in the screenshot some posts above this. So operator is not admin.
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: How can i give admin-rights to a player using the mysql-database?

Post by toffe »

You can indeed also change it in the database, the players table.
Change the level column data to 3 (3 is master admin level number).
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

Re: [SOLVED]How can i give admin-rights to a player using the mysql-database?

Post by o0Julia0o »

But the claim-messages from pyplaned is still coming up. Anyway to deactivate it without chat?
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: [SOLVED]How can i give admin-rights to a player using the mysql-database?

Post by toffe »

You can leave it there, it will always show.
Post Reply

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 2 guests