CmdBlock
CmdBlock
About
CmdBlock is an easy and free way to block any command that a plugin or server uses. CmdBlock will allow only ops to use that command until I can get the permissions working. CmdBlock goes to the core of Bukkit to stop commands from being executed with ease. With a simple syntax you can be blocking those stubborn commands in no time.
Installation
- Move CmdBlock.jar to plugins folder.
- Run server, then shutdown.
- Put commands to be disabled in "/plugins/CmdBlock/config.yml" or use the in game commands.
The differences
Recursive blocking and non recursive blocking allow for a more user controlled administration. In the config.yml there are two new nodes. "Non Recursive" and "Recursive" In the two you will put a dash with the command to be blocked. Recursive blocking works as so. If you have for instance "plugins test1" blocked any command that contains that will be blocked too like "plugins test1 test2". With non recursive blocking "plugins test1" will be blocked not "plugins test1 test2". Any command that equals "plugins test1" will be blocked. If you need any help interpreting this more please hit me a comment or personal message and I will get back to you as soon as I can.
Commands
- /cmdblock help - Lists all the commands.
- /cmdblock add(cmdblock.add) - Add a command to the list.
- /cmdblock add recusrive(cmdblock.add) - Add a command to the list in a recursive manor.
- /cmdblock remove(cmdblock.remove) - Remove a command from the list.
- /cmdbock remove recursive(cmdblock.remove) - Remove a command from the recursive list.
- /cmdblock list(cmdblock.list) - Lists the commands from both Recursive and Non-recursive commands.
- /cmdblock reload(cmdblock.reload) - Reloads the config file. Not the plugin.
-
View User Profile
-
Send Message
Posted Aug 9, 2012@XeonG8
Yes I can very well do so.
-
View User Profile
-
Send Message
Posted Aug 9, 2012tywilly you went afk lol
Can you make it so that when you add /remove a command ..it updates the config file..
maybe a /cmdblock refresh
so that commands manually added to the config show in /cmdblock list
-
View User Profile
-
Send Message
Posted Aug 9, 2012@XeonG8
Yes, other wise let me know
-
View User Profile
-
Send Message
Posted Aug 9, 2012OK so to comfirm.. if I added /allowedcommand blockedArg1
would that work.. ie the commad on its own is fine, but certain blockedArgs would be dissallowed ...
And same with /blockedcommand ...so it doens't work on its own, only if its used with certain arguments on the end.. then it is allowed like... /blockedcommand allowedArg1
then the blockedcommand works..
-/TEST (blocked) +/TEST bArg1 (allowed) -/TEST bArg2 (blocked)
-
View User Profile
-
Send Message
Posted Aug 9, 2012@XeonG8
Hello XeonG8, I have added the more advanced command blocking. The problem is you cant add a command like this '/example arg1 arg2' one argument is the maximum for now but I will be added the function to block as many as possible.
-
View User Profile
-
Send Message
Posted Aug 8, 2012Are you adding in the more advanced command blocking stuff? like I mentioned before?
-
View User Profile
-
Send Message
Posted Aug 5, 2012Now the plugin its already done, i have a last suggestion, what about adding multiworld support? blocked commands for specific worlds
-
View User Profile
-
Send Message
Posted Aug 5, 2012@WingedSpear
Sorry 'bout that, I will add that to the next version. Just for now you can add them in the config.
-
View User Profile
-
Send Message
Posted Aug 5, 2012i have the version 1.3, but how im able to add command with spaces? like ''/example help'', the plugin just take ''/example''
-
View User Profile
-
Send Message
Posted Aug 3, 2012@tywilly300
awesome, however I'd like to take the save road and use a java6 version, if you provide us with =) Thank you for your nice work
so I would like the java6 version if possible.
-
View User Profile
-
Send Message
Posted Aug 3, 2012@ToddVee
Actually no java 7 comes pre compatible with java 6. So you wouldn't have to update.
-
View User Profile
-
Send Message
Posted Aug 3, 2012@tywilly300
thank you, that expains it. I thought I would have to update all my servers plugins in order to update java, isn't that correct? If so, not all the plugins are java7 ready...
-
View User Profile
-
Send Message
Posted Aug 3, 2012@ToddVee
Hello ToddVee the reason you are getting this error is because you are not running java 7. I will be uploading a new version of CmdBlock in the next hour for java 6 and below or you can update to java 1.7, sorry for the error and this will be fixed soon.
-
View User Profile
-
Send Message
Posted Aug 3, 2012at build 2281, and cmdblock 1.1b, I get the message that I have the wrong game version. So a plugin folder is not being created, instead I get errors in the console. Need help with this =)
2012-08-03 23:30:36 [SEVERE] Could not load 'plugins/CmdBlock.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/tywilly/Bukkit/CmdBlock/Init : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:153) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:220) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:196) at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:50) at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
-
View User Profile
-
Send Message
Posted Aug 3, 2012add a command for remove blocked commands and add commands in game, i have a plugin like this one and the only issue is i cant remove command in game, but i can add them.
-
View User Profile
-
Send Message
Posted Aug 2, 2012when it comes to permissions, you want to check for sender.hasPermission("permissionnode") {player instead of sender if you are using player mostly}. also registering the perms in the plugin.yml is the proper thing to do. http://wiki.bukkit.org/Plugin_YAML Permission Section.
-
View User Profile
-
Send Message
Posted Aug 2, 2012@XeonG8
Thanks for the support, I have uploaded the new version with that installed.
-
View User Profile
-
Send Message
Posted Aug 1, 2012Brilliant. Considering it was made for our server XD
-
View User Profile
-
Send Message
Posted Aug 1, 2012possible to have a command blocked, but allowed if it contains valid arguments? so, /command
on its own is blocked, but
/command arg1
is allowed..?
-
View User Profile
-
Send Message
Posted Aug 1, 2012@XeonG8
Thanks for the suggestion, I will work on that in the next update.