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!
I tried to do &4&kLol But All It Does Is Show &klol
This plugin is almost exactly what I needed for a server I'm setting up - but I'd also request Craaaiig's suggestion to limit @p, @r, @a.
How about a section in the filter.yml like this:
targets:
- p
- r
- a
So if there is only p in that section, then players without SafeCommandBlock.bypass will get a message telling them something like "Invalid target - you can only use @p" if they try to use @a in a command.
@KevinW1998
I'm trying to build a community jenkins build service so that people can just get their dev builds from the developers through my network's build service so let me know. What are you using Netbeans or Eclipse? Both integrate well with github and github will auto build with jenkins our CI is at ci.nixium.com anyways let me know in a PM if you're interested.
Well I wanna make it open source (like github), but at the moment I am thinking about it.
KevinW1998 would you like a jenkins build service? I could build your plugin if you're committing to github or something similar.
@eyamil
These 2 permissions should be in the yaml file of the permission system. If someone has SafeCommandBlock.access permission, then he can use the Command Block but he has only limited rights because of the blacklist/whitelist! If someone has SafeCommandBlock.bypass permission, then he has has complete access of the command block, he can ignore blacklist and whitelist.
Don't forget that you need .acces AND .bypass to get the whole permission. If you are OP you have the permission anyway.
Oh my. I'm very sorry if I wasted your time. I completely forgot about the message. Also, I've been wondering, how exactly would I set SafeCommandBlock.access and SafeCommandBlock.bypass Are those two properties in the yaml file for the server?
@eyamil
Well if you use /say @p only then the won't be a message anyway. You need to use /say @p <message>.
If you want to use the command block with all function the you need the permissions SafeCommandBlock.access and SafeCommandBlock.bypass
I hoped I could help ;)
I'm an admin on a server of my friend's, and we installed this plugin figuring that we could use cmd blocks without the hassle of griefers, etc.
Problem is, none of us can figure out for the life of me how to use this plugin.
So my question is, what commands do I need to input make a command block function normally?
Command blocks are enabled on this server, and I'm doing /setcommand /say @p while looking at a command block. I get a message saying "Set command: '/say @p'!", but whenever I activate the command block with redstone, I don't get any message.
It seems like a really good plugin, except I just can't figure out how to use it :P
thanks I wub you lots xD
@CoasterCrazy
already done for the next update :), needs only approve from bukkit staff
@KevinW1998 yes a reload for your plugin only would be awesome :D
@CoasterCrazy
Well, there is always the /reload command. But yes, I can add a command for reload my plugin only.
Is there a command to do an ingame config reload? I updated whitelist/blacklists and it's not picking it up. Hesistant to do a restart now due to 15 min down time in that (slow start up) and was wondering if I can reload it ingame. Thanks :)
@Arguello2
What do you mean exactly?
Does this plugin stop server restarts from resetting the command block leader board function?
@Craaaiig
Ok, I'll see what I can do!
@KevinW1998
I mean, would it possible to allow the arguments (such as @p, @r, @a) to be added to the blacklist?
For example: I do want people to be able to use /tp @p <x> <y> <z>. But I do not want them to be able to /tp @a <x> <y> <z>.
Sorry if this doesn't make that much sense lol.
@Craaaiig
What do you mean with a limiting of @a? Do you mean the arguments which are used, like: @a[r=3,rm=1] ?
Hey, I love this so far, it's pretty good. But one thing... Is there a way you could add a way of limiting the use of @a ?
If that's possible, it'd be 100% perfect. :D