Admin list command in the same format as whitelist and banlist

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

User avatar
Cooldude2606
Fast Inserter
Fast Inserter
Posts: 108
Joined: Sat Sep 16, 2017 9:04 pm
Contact:

Admin list command in the same format as whitelist and banlist

Post by Cooldude2606 »

TL;DR Currently there is no way to check (via the console) if someone will be promoted to admin when they join the game if they have not joined previously. My suggestion is to extend "/admins [online]" to "/admins [online/add/remove/get/clear] [username]" which is the same format as "/banlist" and "/whitelist".

Why ?
There is only a single way to check if a player will be promoted to admin on join, and that is via the "/admin" GUI and seeing if their name has an X in the admin column. This solution does not work when you want to send commands via an rcon interface. You also can not use "game.get_player(name).admin" or "/admins" (in its current state) because neither of them work for a player who has not yet joined the game.

By using the same format as "/banlist" and "/whitelist" it brings consistency between all three lists allowing for easier automation via rcon and for testing that a user was promoted / demoted successfully (yes, integration testing is the main reason I want this). It also avoids the creation of a new command or breaking existing behaviour ("/admins" currently ignores all other input except for "online" and "o").

Thanks for reading :)
--- Developer for Explosive Gaming and Clusterio. Please contact me via our Discord. ---
Post Reply

Return to “Ideas and Suggestions”