Safe Command Block
Safe Command Block
What is Safe Command Block?
Safe Command Block makes the management of command blocks easier and safer. There are some problems what command blocks have:
- Command blocks cannot be used from a player who doesn't is a op.
- Command blocks can execute nearly every command (except kick, ban, op, deop, stop), so they aren't safe.
- You can only set a name of a command block only with a anvil.
If you have a public server you won't be able to build a adventure map with other players with this problems. Safe Command Block solves these problems with these features:
- Whitelist or Blacklist Commands
- World Whitelist (optional)
- Commands can be set from players even if they not op and in creative mode
- Set the name of a command block
- Reset the command of a command block
- With permission limitation
- Extra Color Codes
With this plugin you are now able to build a adventure map without worries!
What do I need to run Safe Command Block?
You will need a plugin called ProtocolLib and you need the bukkit build #2685 or higher. Install it and run it together with Safe Command Block. If anythig goes wrong just write a comment.
You may install some other plugins for more safety!
List of Commands/Permissions
Permission | Command | Description |
---|---|---|
SafeCommandBlock.access | Nothing | If someone has access to command blocks (modify the command) |
SafeCommandBlock.bypass | Nothing | If someone can bypass whitelist, blacklist and worldwhitelist |
SafeCommandBlock.color | Nothing | If someone can write the command with color codes to command blocks |
SafeCommandBlock.resetCommand | /resetcommand | If someone can reset the command of a command block (admin command) |
SafeCommandBlock.setCommandName | /setCommandName | If someone can set the name of a command block (admin command) |
SafeCommandBlock.setCommand | /setCommand | If someone can set the command of a command block |
SafeCommandBlock.reload | /scbreload | If someone can reload the config file of Safe Command Block |
Formatting Codes can be found here - Note: You'll use a & instead of a $.
Note: Admin commands won't check for other permissions like blacklist or whitelist!
For config sample click here.
How to use
If you want to modify the command of the command block or use a command from Safe Command Block, please be sure to target the command block directly. If you do so, nothing should go wrong!
Having Problems?
If it is a small problem, just write a comment. If it is a big/heavy problem, then please use the ticket function. Thank you!
It didn't work for me in 1.9
guys .. i know now hot to do op but ... when i put the command in a command block it kicks me out .. of the sever !! help plz
hi how can I do {op} ?? plz i need help quick!! ==== Help! ====
@robotnikthingy
Author has not been online for a while, so hope it will still be updated if needed. But of course if you need help, tell us what version of server you use.
As for the problem with the command block disappearing is not this plugin. Probably Griefprevention, Worldguard or another plugin. If you want help with this give us your plugin list.
Can you update this? It doesnt work and I get an error in the console. Also when I try to place a command block when not opped it dissapears.
@HeroCC
Did you even try it? It works with 1.8.3 and its very possible it will still work with 1.8.8.
Is there a version for 1.8.8? Also, is this plugin Open Source? I am very curious how it works
I am just about to upgrade my server and all plugins to spigot 1.8.
Am sure hoping this will still work and otherwise hoping for an update, I can't really go without this one :'(.
Any chance of a 1.8 update? Everything works besides non OPs using command blocks, can type /setcommand and do that but I need commands longer than chat limit. Great plugin really hoping for a 1.8 update
I found a huge security issue with this.
If you allow the use of summon or setblock people can create a MinecartCommandBlock with blacklisted/non whitelisted command inside it.
Is it possible to modify this plugin to filter out the placement of commandblocks through commandblocks? This would be a huge help. Maybe an additional option for it in the config?...
I've found a bug which prevents commands containing non ASCII characters to be displayed properly. For example, if you try to set "/say これはテストです", the output will be corrupted.
This is because multibyte characters are not handled properly. I've decompiled your plugin and found that you are casting bytes to chars. This will not work for multibyte characters since they are not represented by a single byte.
This can be easily fixed by constructing a String by the byte array (encoding must be set to UTF-8, otherwise you'll get encoding problems), then get a Char array to seek through every character.
This plugin has been very useful, so we're looking forward for this bug to get fixed.
@stickmanmeyhem
I'm getting a very similar error too when I try saving a command. Theres just an error code in the console somewhat similar to yours and the command is never saved.
I think its just a compatibility error with the new protocollib but I'm not completely sure.
I think an option in config to disable automatic colors could be nice :)
@KevinW1998
Yay thank you.
@CoolKill3r
Yes
Will this mean i can let 1 admin use command blocks without being OP and without anyone els using it? Thank you.
@FlyingSpitball
NMS Code YAY!
@KevinW1998
Ok. I was just suggesting something. I know it is hard to do that. It's ok if you can't make that kind of change, but if you can, that would be great.
@FlyingSpitball
Yes I gonna update to 1.7.8/1.7.9, but you suggestion is very hard to impossible to realize, because I need to hook in the command block. I will see what I can do.
@KevinW1998
I highly doubt that this can be done, but can you make it so the commands set in commandblocks made by regular players won't be executed from the console, but the player using the commandblock himself? Also, if possible, update this plugin to 1.7.8/1.7.9...