Chained Op
ChainedOp
Chained Op allows the server manager to prevent commands they deem should never be called from being called. These commands are given to ops by default through various plugins or even shipped with bukkit that could result in admin abuse, prevent the server from running normally, or even prove to be used as a means to hurt the server as a whole.
How to use it
Chained Op allows you to do a few things. You can completely disable commands from being used, as well as prevent certain parameters from being used. This means you can not only stop people from using commands, but keep commands and specifically target the parameters you deem unsafe or abusive. Using Chained op is easy, you can add and remove items by either opening the config, and using the examples as a guide to adding and removing your own restrictions. You can also use a permissions plugin to give a permission group access to the in-game commands (note: you must use a permission plugin, ops can not use them by default due to the nature of the plugin.)
Configuration
When you open your configuration file your going to see these three fields:
Commands: SpecificCommands: Message:
Commands Commands is the full command restriction, anything put in here will be unusable as a whole, chained op ships with "/stop" as an example command. If you want to still use the command but only want to stop a few parts of them then this is not the field to add the command to.
SpecificCommands these are the parameter blockers, you simply put in the command like you would for normal command restriction except you continue to add field, then all you have to do is keep adding the field you don't want. Chained Op ships with the "/give" command as an example of how it can be used to prevent players from using it to obtain bedrock.
Message This is the message the player will receive when trying to use a command that you have blocked.
Configuration Shortcuts
I currently only have one shortcut:
%p
%p This will substitute the player who called the commands name, use this to prevent them from giving themselves things they shouldn't in game.
Commands
- /chop reload -Reloads the config file
- /chop add -Adds a restriction
- /chop del -Deletes a restriction
Permissions
- chainedop.* -Grants all permissions
- chainedop.override -Allows the user to use all restricted commands
- chainedop.reload -Allows the user to reload the configuration
- chainedop.add-Allows the user to add a restriction
- chainedop.del-Allows the user to delete a restriction
Can you make it so certain players can bypass a certain blocked command?
make it for 1.7.2
Hey thx for the plugin I made a free op server with it :D
i love this plugin also im glad it still works with 1.7.2! one idea though: can you add color code support so it pops out more?
@silajim
Hi Just a note, Im re-writing the code for an update to be more user friendly. The specific command works by stopping a command from working bu checking if the command has the same parameters as other bits so:
this specific command stops anyone from giving bill anything:
give bill
this stops bill from getting stone:
give bill stone
all parts of the specific command need to match for it to be stopped, and you dont need to include all parameters, if the first 3 match in a 5 parameter command, so long as you only listed the first 3 it will be prevented
Hi, I have installed this plugin and i have a couple of questions, first, it does support multi-word commands? (ex. tool brush cylinder) How does the SpecificCommands work?
The code needs redoing since the udate! Will release soon
Hi, I have installed this plugin on my server and restricted the /say command but everyone can still use it. Any ideas why?
Release 2 has been accepted all changes are now up to date
Added permissions, commands, support for more than one slash commands, parameter restrictions and a player name shortcut!
You'll need to wait for the bukkit to approve of Release 2 to get these features however.
@zsxc34 please read below, this has been addressed and I will do it, Ill be adding permissions config reload and commands to add and remove commands in game. I will also be adding a "tried to use banned command" log as well as an optional punishment system to kick, ban, remove permissions or other commands to call when they try to use commands a # of times
You need to add a bypass for some players that the server need to have all the commands
Yes, ill add that in this weekend
lol nice thanks for this good plugin :D can you pls add permissions for example if the owner have this so he can use all blocked commands?
@Reoss
Yes, Any command you chose is unusable in game, I will be making an update to allow you to stop parameters and world edit like commands, but right now it works like this:
You add:
to the list what happens is that anyone who tries to call /help will get a message that says:
"This command has been disabled by the server manager"
/help 2 will get the same message, no matter the permission level of the user and no matter the parameters they use that command is now disabled.
(the file is under review right now, so it should be up soon)
can this plugin for example no one can use plugins command?