PlayerAdministration
Allows server admins to moderate users using a GUI from within the game
Install / Use
/learn @LauraRozier/PlayerAdministrationREADME
Player Administration provides a simple-to-use GUI that helps admins moderate users.
Features
- Banning/unbanning users
- Kicking users
- Killing users
- Muting/unmuting a player
- Clearing the user's inventory
- Resetting a user's blueprints
- Resetting a user's metabolism (Identical to how a respawn sets a random metabolism)
- Recover a user's metabolism (Gives the user a healthy metabolic state by filling their hunger, thirst, oxygen, and removing bleeding and radiation.)
- Hurting a user
- Healing a user
- Teleporting yourself to a user
- Teleporting a player to yourself
- Spectating a player WARNING: This kills your player and makes you like a "ghost", respawn to exit spectate.
- The ability to see a user's vitals, status and steamID64
- Use of Economics plugin to show player's current balance
- Use of ServerRewards plugin to show player's current reward points
- Use of Freeze plugin to freeze/unfreeze user position (Only for English language users, Freeze uses localized commands!!!)
- Use of PermissionsManager plugin to edit Oxide user permissions on a user
- Use of DiscordMessages plugin to send a fancy message to Discord for each ban and kick
- Use of BetterChatMute plugin to mute players in an improved manner
- Use of Backpacks to view a players backpack
- Use of Inventory Viewer to view a players inventory
- Use of Godmode to enable/disable godmode for players
- Filtering through users via the "search" function (Case insensitive and selects both names and IDs that contain the text written in the input)
Permissions
Hint: To easily add all protections use the RCON command: oxide.grant {user <username> | group <group name>} playeradministration.protect.*
- playeradministration.access.show -- Required to be able to use the
/padmincommand and plugin - playeradministration.access.kick -- Allows the user to kick any player
- playeradministration.access.ban -- Allows the user to ban and unban any player
- playeradministration.access.kill -- Allows the user to kill any player
- playeradministration.access.clearinventory -- Allows the user to clear any player's inventory
- playeradministration.access.resetblueprint -- Allows the user to reset any player's blueprints
- playeradministration.access.resetmetabolism -- Allows the user to reset any player's metabolism
- playeradministration.access.recovermetabolism -- Allows the user to give any player a healthy metabolic state
- playeradministration.access.hurt -- Allows the user to hurt any player
- playeradministration.access.heal -- Allows the user to heal any player
- playeradministration.access.mute -- Allows the user to mute/unmute any player
- playeradministration.access.perms -- Allows the user to use the "Permissions" button for any player
- playeradministration.access.allowfreeze -- Allows the user to freeze and unfreeze any player
- playeradministration.access.teleport -- Allows the user to teleport to any player
- playeradministration.access.spectate -- Allows the user to spectate any player
- playeradministration.access.detailedinfo -- Allows the user to see more detailed player information
- playeradministration.protect.ban -- Protect the user against banning through the panel
- playeradministration.protect.hurt -- Protect the user against hurting through the panel
- playeradministration.protect.kick -- Protect the user against kicking through the panel
- playeradministration.protect.kill -- Protect the user against killing through the panel
- playeradministration.protect.reset -- Protect the user against stat/BP/inventory resetting/clearing through the panel
Chat Commands
Binding keys and saving the keybinds:
bind p chat.say 0 /padmin
or:
bind p "chat.say 0 /padmin"
Then to save it:
writecfg
- /padmin -- Show the player administration menu (requires
playeradministration.access.showpermission)
Console Commands
- playeradministration.closeui -- Close the player administration menu
- playeradministration.switchui <UI Page Type> -- Switch the UI to a different page (Check the code to see the types of UIPage) (requires
playeradministration.showpermission) - playeradministration.kickuser <Player ID> -- Kick a player (requires
playeradministration.access.kickpermission) - playeradministration.banuser <Player ID> -- Ban a player (requires
playeradministration.access.banpermission) - playeradministration.mainpagebanbyid -- Ban a player (requires
playeradministration.access.banpermission AND only works from the UI due to the text input field) - playeradministration.unbanuser <Player ID> -- Unban a player (requires
playeradministration.access.banpermission) - playeradministration.perms <Player ID> -- Open the perms UI for a player (requires
playeradministration.access.permspermission) - playeradministration.vmuteuser <Player ID> -- Mute voice for a player (requires
playeradministration.access.voicemutepermission) - playeradministration.vunmuteuser <Player ID> -- Unmute voice for a player (requires
playeradministration.access.voicemutepermission) - playeradministration.cmuteuser <Player ID> -- Mute chat for a player (requires
playeradministration.access.chatmutepermission) - playeradministration.cunmuteuser <Player ID> -- Unmute chat for a player (requires
playeradministration.access.chatmutepermission) - playeradministration.freeze <Player ID> -- Freeze a player (requires
playeradministration.access.allowfreezepermission) - playeradministration.unfreeze <Player ID> -- Unfreeze a player (requires
playeradministration.access.allowfreezepermission) - playeradministration.clearuserinventory <Player ID> -- Clear the inventory of a player (requires
playeradministration.access.clearinventorypermission) - playeradministration.resetuserblueprints <Player ID> -- Completely reset the BPs of a player (requires
playeradministration.access.resetblueprintpermission) - playeradministration.resetusermetabolism <Player ID> -- Reset the metabolism of a player to fresh spawn state (requires
playeradministration.access.resetmetabolismpermission) - playeradministration.recoverusermetabolism <Player ID> -- Recover the metabolism of a player to 100% (requires
playeradministration.access.recovermetabolismpermission) - playeradministration.hurtuser <Player ID> <Amount> -- Hurt a player for a certain amount (requires
playeradministration.access.hurtpermission) - playeradministration.killuser <Player ID> -- Kill a player (requires
playeradministration.access.killpermission) - playeradministration.healuser <Player ID> <Amount> -- Heal a player for a certain amount (requires
playeradministration.access.healpermission) - playeradministration.tptouser <Player ID> -- Teleport to a player (requires
playeradministration.access.teleportpermission) - playeradministration.tpuser <Player ID> -- Teleport a player to you (requires
playeradministration.access.teleportpermission) - playeradministration.spectateuser <Player ID> -- Spectate a player (requires
playeradministration.access.spectatepermission) Note: This will kill your character by the game's design! - playeradministration.viewbackpack <Player ID> -- View the backpack of a player (requires
backpacks.adminpermission) - playeradministration.viewinventory <Player ID> -- View the inventory of a player (requires
inventoryviewer.allowedpermission) - playeradministration.godmode <Player ID> -- Enable Godmode for a player (requires
godmode.adminpermission) - playeradministration.ungodmode <Player ID> -- Disable Godmode for a player (requires
godmode.adminpermission)
Configuration
- Use Permission System -- When set to
falsethe users with theplayeradministration.access.showpermission can use all actions
{
"Use Permission System": true,
"Discord Webhook url for ban messages": "",
"Discord Webhook url for kick messages": "",
"Broadcast Kicks": true,
"Broadcast Bans": true
}
Localization
{
"Permission Error Text": "You do not have the required permissions to use this command.",
"Permission Error Log Text": "{0}: Tried to execute a command requiring the '{1}' permission",
"Kick Reason Message Text": "Administrative decision",
"Ban Reason Message Text": "Administrative decision",
"Protection Active Text": "Unable to perform this action, protection is enabled for this user",
"Dead Player Error Text": "Unable to perform this action, the target player is dead",
"Kick Broadcast Message Format": "Player {0} has been kicked: {1}",
"Ban Broadcast Message Format": "Player {0} has been banned: {1}",
"Never Label Text": "Never",
"Banned Label Text": " (Banned)",
"Dev Label Text": " (Developer)",
"Connected Label Text": "Connected",
"Disconnected Label Text": "Disconnected",
"Sleeping Label Text": "Sleeping",
"Awake Label Text": "Awake",
"Alive Label Text": "Alive",
"Dead Label Text": "Dead",
"Flying Label Text": " Flying",
"Mounted Label Text": " Mounted",
"User Button Page Title Text": "Click a username to go to the player's control page",
"User Page Title Format": "Control page for player '{0}'{1}",
"Ban By ID Title Text": "Ban a user by ID",
"Ban By ID Label Text": "User ID:",
"Search Label Text": "Search:",
"Player Info Label Text": "Player information:",
"Player Actions Label Text": "Player actions:",
"Id Label Format": "ID: {0}{1}",
"Auth Level Label Format": "Auth level: {0}",
"Connection Label Format": "Connection: {0}",
"Status Label Format": "Status: {0} and {1}",
"Flags Label Format": "Flags:{0}{1}",
"Position Label Format": "Position: {0}",
"Rotati
