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!
@countingportals
1. If you wanna managing permission I suggest using bPermission. There are also other Permission Plugins outside, but for managing Permission you wanna really have a Permission Plugin.
2. To set a Permission for a group/user you don't have to write "SafeCommandBlock.access : true", using "SafeCommandBlock.access" is enought!
Hey sorry for being a noob, but looking for some direction on how to use this with permissionsbukkit. Please pm me. I currently have added the commands as seen above like SafeCommandBlock.access : true in my permissionsbukkit config file, but still says op has to execute commands. Ideas / what am I doing wrong? Thanks.
For everybody who gets an error when using the say command without the "/", I fixed it.... I would do it as a own release but I am not sure right now. I have even problems with the encoding of chinese text....
Okay, at least I managed to do it myself up to some point :D.
But I still don't see how the information there will help me with the cmddblock since its the same as what i found in the chunk info and also the same values as what I input in the cmdblock.
5 Entities Count:1, Slot: 1, Damage: 3, id: 397 Tag: 1 entry Aa SkullOwner:Nameofplayer
@JK82NL
You were looking in the wrong file. Put your skull in your inv and then open you inventory by finding you player.dat or <yourname>.dat in the Players Folder of your save :P
@KevinW1998
You could have pointed me in a better direction. Never had anything to do with NBT or some format of it. Maybe a name of a good reader, what format,where?
I could not really find any direct answers for finding what I need on google and all the readers seem to be like very outdated so I have no clue if that matters, but i did try. I used NBTExplorer and it opened up my .minecraft save files... after thinking about it I figured i just need to go to my bukkit folder and open up the world where the cmd block is in. But after searching for a while in level.dat and data folder found nothing that could help imo.
I guess I have to find it in the region folder which is full of chunk info... probably one with an existing player head i placed.... but how do i find out which chunk? I tried a search for head, skull, 397, which took a pretty long time to finish saying " end of results" . Only I didnt get any results.
What am I looking for and where? Is this the right program?
Rot: 8 Skulltype: 3 x:-8 y:71 z:193 ExtraType: KylexDavis id: Skull
Thats all. I tried using /give @p 397 1 3 {ExtraType:"JK82NL"}. But still the same.
@JK82NL
Just use a NBT reader and check the NBT-Format.
I believe it should be possible to obtain player heads through a command block since 13w36a and above, but I cant seem to get it to work. Only thing I get is just a normal steve head.
I used this command:
/give @p 397 1 3 {SkullOwner:"USERNAME"}
Anything I'm doing wrong?
I already asked this question before but apparently it is a bug in craftbukkit. Unless anyone can confirm to me that they can use /setblock and /summon on a commandblock?
These two plugins seem can fix it.
SetBlockFIX SummonFIX
I tested it and both commands FINALLY work for me with CB 1.7.2 Beta. Now I'm happy !!! I hope this helps others as well.
@KevinW1998
Yep. Whenever I try to save the command to the block it pops that out on the console and there's no command actually saved to the block.
@stickmanmeyhem
So you've tryied to set up a command block and set the command?
Having trouble setting this up. Whenever I try to set up a command block the commands don't save and this is dumped into the console :
I'm guessing this is being caused by me running spigot instead of bukkit. (I'm running Spigot Build 1299)
@jessefjxm
I see... I goanna have a look...
With this plugin installed ,command block stops support for chinese characters ( and other unicode characters ,maybe)...Hope this bug can be fixed ;)
(words become gibberish like this:)
@spetznack
Sorry, forgot to tell you. Craftbukkit 1.7.2-R0.2 Beta. I noticed just now that this plugin is Compilied for CB 1.7.2-R0-1 . I will downgrade to that and see if anything changes.
@JK82NL
Wait, what server are you running? Craftbukkit/spigot? 1.6/1.7?
@spetznack
I tried using your command line but it did not work. I can do /say, /tp, /playsound and other commands, just the /setblock and /summon will not work. So since the others work I do not think it is a problem in my permissions. And by the way i have the wildcard '*' in my own permissions so it should everything should work for me anyway.
And yes, the reason I need this plugin is because I have disabled all ways of getting OP on my server because of security reasons.
Could there be any other plugin interfering with the command? Worldguard, Multiverse, GriefPrevention, Essentials are the only ones I can imagine to possibly interfere. Or maybe protocollib?
I removed all plugins except for essentials, multiverse core, permissionsex, protocollib and of course safecommandblock. Also added the setblock and summon to the whitelist in the filter.yml. Still nothing.
@JK82NL
As a test, try "/setblock 0 1 0 glass" and then put a redstone torch next to the cmd block. That command should create a glass block right over the commandblock.
If that doesn't work, then I believe there is something wrong in your permissions. Remember that without this plugin you will need to be OP and you have to be in creative gamemode
I see you talking about the setblock and summon commands. I actually can't get them to work. Even copied other peoples command line to make sure I wasn't doing anything wrong, but apart from some other commands I used just these two don't seem to work.
Any idea why?
@KevinW1998
I understand, but I hope you see the problem. Most people who are into command blocks would know about these commands so it would be a good idea for people to know that it's not so safe to allow people to use /summon and /setblock (and maybe some other commands that can do the same).. It would be nice to inform people who download your plugin of this.. That's all :)