Secure Admin

Restricts select admin commands to players with permission

Total Downloads: 1,868 - First Release: Nov 12, 2015 - Last Update: May 22, 2017

5/5, 6 likes
  1. Wulf
    Configuration File:
    Yes
    Secure Admin restricts select admin commands to players with permission. The commands currently supported are listed below. Admin are also protected from banning/kicking by default, but this can be disabled in the configuration.

    Permissions

    This plugin uses Oxide's permission system. To assign a permission, use oxide.grant user <name or steam id> <permission>. To remove a permission, use oxide.revoke user <name or steam id> <permission>.
    • secureadmin.ban (allows player to ban other players)
      Ex. grant user Wulf secureadmin.ban
      Ex. revoke user Wulf secureadmin.ban
      Ex. grant group admin secureadmin.ban
    • secureadmin.kick (allows player to kick other players)
    • secureadmin.say (allows player to broadcast messages)
    • secureadmin.unban (allows player to unban other players)
    Commands
    • ban <name or id> <reason>
      Replace <name or id> with a player's name or Steam ID, and <reason> with optional reason
    • kick <name or id> <reason>
      Replace <name or id> with a player's name or Steam ID, and <reason> with optional reason
    • say <message>
      Replace <message> with a valid message
    • unban <name or id>
      Replace <name or id> with a player's name or Steam ID
    Configuration

    You can configure the settings in the SecureAdmin.json file under the oxide/config directory.
    Code (Javascript):
    {
      "Broadcast Bans (true/false)": true,
      "Broadcast Kicks (true/false)": true,
      "Enable Ban Command (true/false)": true,
      "Enable Kick Command (true/false)": true,
      "Enable Say Command (true/false)": true,
      "Enable Unban Command (true/false)": true,
      "Protect Admin (true/false)": true
    }
    Localization

    The default messages are in the SecureAdmin.json file under the oxide/lang/en directory. To add support for another language, create a new language folder (ex. de for German) if not already created, copy the default language file to the new folder, and then customize the messages.
    Code (Javascript):
    {
      "NotAllowed": "You are not allowed to use the '{0}' command",
      "PlayerBanned": "{0} has been banned for '{1}'",
      "PlayerIsAdmin": "{0} is admin and cannot be banned or kicked",
      "PlayerKicked": "{0} has been kicked for '{1}'",
      "PlayerNotBanned": "{0} is not banned",
      "PlayerNotFound": "No players were found with that name or ID",
      "PlayerUnbanned": "{0} has been unbanned",
      "PlayersFound": "Multiple players were found, please specify: {0}",
      "ReasonUnknown": "Unknown",
      "UsageBan": "Usage: {0} <name or id> <reason>",
      "UsageKick": "Usage: {0} <name or id> <reason>",
      "UsageSay": "Usage: {0} <message>",
      "UsageUnban": "Usage: {0} <name or id>"
    }
    Credits
    • ownprox, for the original Secure Admin plugin.
    Skettis, Bearen, Freaky and 1 other person like this.