Blocks configured commands from being executed on the server

Supported Games
GameServerKingsGameServerKings

Command Block is a simple plugin that blocks configured commands (and optionally arguments) sent by a player to the server. This is useful for preventing users from suiciding or using other unwanted commands.

Note: This will only handle commands actually send to the server; settings such as "noclip" or "god" are client-only and never sent to the server.

Permissions

  • commandblock.admin -- Allows player to add/remove/list blocked commands
  • commandblock.bypass -- Allows player to bypass command blocks

Commands

  • blockcommand <add> <command> -- Add the specified command to the command block list
  • blockcommand <remove> <command> -- Remove the specified command from the command block list
  • blockcommand list -- List all of the commands from the command block list

Configuration

Keep in mind that this will only work with commands that are sent to the server. Client specific commands will not be blocked, as it is never sent to the server being as it is a purely a client-side command.

{
  "Block commands sent by players": true,
  "Block commands sent by server": false,
  "List of commands to block": [
    "spectate",
    "kill",
    "status"
  ],
  "Log blocked command attempts": false
}

Localization

MIT License, with distribution exclusivity for uMod.org


Copyright (c) 2020 Wulf


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.