CommandHelper
CommandHelper lets you and users alias commands so that you don't get carpal tunnel, and it also allows you to script your own plugins without Java knowledge.
- Let you or users bind aliases for multiple commands
- Using an easy to use language MethodScript, script your own plugins
- Completely replace whatever you are using for /homes /warps /mail etc. with CommandHelper
- Create new features, handle new problems, without having to learn Java
- Easy to use language to pick up, with great documentation
Want an easy to use in-game map editor? Try WorldEdit. Want to protect areas? Try WorldGuard.
For the latest version: This page is not updated. For the latest builds, get them from the Downloads page.
Getting Started
Installation |
---|
Bukkit is currently required.
- Download CommandHelper and put the .jar into plugins/.
- Run your server once to generate the configuration files.
- Read the wiki (see below) to find out how to use CommandHelper.
Documentation |
---|
What are the permissions? How do you make your own scripts?
All the documentation can be found at https://methodscript.com/docs
Learning More |
---|
- Project leader: LadyCailin is the current project leader
- Lead developers: LadyCailin
- Project started: In November 2010 (Bukkit was started January 2011)
The original project leader and lead developer was sk89q.
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
THE COMMENTS ON THIS PAGE ARE NOT REGULARLY MONITORED. For faster support, please join us on IRC or Discord.
seems like everyone can use this but me...Is there something I need to do to keep this from crashing my server. It boots up and my server be running fine than 2 minutes later it crashes..
@Awesome_Intervention:
There is a LOT of changes in dev builds, go get a dev build!
As wraith says, there are still a few changes that need to be made before a release here can happen.
Will this fantastic plugin be updated anytime soon? :)
@CJxD
Simple aliases don't actually use any permissions, they basically just turn around and re-run the aliased command as that player, so if they don't have permission for the aliased command, they won't have permission for the alias, and if they have permission for the command, they'll have permission for the alias too. If you're looking to restrict a single command that they would otherwise have permission for, you can use array_contains() and pgroup() or has_permission() and then die() if they don't have the appropriate permission/group.
Simple problem: I can't seem to restrict usage of labelled aliases.
Here's an alias:
Anybody can use this alias, even if the following is set in permissions:
What be the problem?
@Smiley43210
Hi, sorry, the permissions issue was an issue with bpermissions. It's resolved now. :)
@rellac
One of the functions you are using is probably a safe (restricted) function.
-Begin CommandHelper Wiki Excerpt-
Restricted Functions
These often tie into game functionality and have some potential for abuse.
Example: spawn_mob() can be used to spawn a large number of creepers.
Permission is required to use these.
-End CommandHelper Wiki Excerpt-
So how do you specify permissions for these?
http://wiki.sk89q.com/wiki/CommandHelper/Permissions_Settings#Scripting_Permissions
@Coolamigo
Odd. Which version of CommandHelper are you using? I'm using build 1066. Anyways, try this. I uploaded my version of the auto_include.ms file, which works for me.
http://legendcraft.netai.net/temp/auto_include.ms
So I'm having problems with CommandHelper.
I'm trying to simplify bpermisisons ranking system. Currently I need to:
/world world /user <player> /user setgroup <group>
Obviously, this is a silly method and I have no idea why they thought it was a good idea to do this. I'm trying to simplify it with CommandHelper so I can run /rank <player> <group> - it would be much simpler.
I currently have this config, which I got from your irc: http://pastie.org/pastes/4695053/text
Whenever I try to run it, I get the error:
"There as a compile error when trying to include the script at plugins/CommandHelper/auto_include.ms Unexepcted parenthesis :: auto_include.ms:41 :: IncludeException:auto_include.ms0"
My initial assumption was that this was a problem with the auto_include.ms file, but I hadn't edited it at all and I was told that this means that there is an error in my config (that was all the help I could get from the irc).
I'd appreciate any light to be shed on my predicament, thanks (:
Edit: just scrolled down and saw your solution :)
Seems fine, however, I can't seem to give myself the permissions node I require? It always tells me I don't have access to the command, using the aforementioned config file.
@Smiley43210 Thank u so much!! I will try it and I hope it will work :)))))
EDIT: It did not work :( This time I got this error: 12:30:02 [INFO] There was a compile error when trying to include the script at plugins\CommandHelper\auto_include.ms Unexpected parenthesis :: auto_include.ms:17 :: IncludeException:plugins\CommandHelper\auto_include.ms:0
I copied the exact code you wrote in your edit.
@confuz3d I have the same problem
@wraithguard01 Its the script that comes with the plugin (Is generated on startup). I never changed it.
2:38:15 PM [INFO] There was a compile error when trying to include the script at plugins\CommandHelper\auto_include.ms
Unexpected parenthesis :: auto_include.ms:41 :: IncludeException:plugins\CommandHelper\auto_include.ms:0
THere is no line 41 in auto_include.ms
EDIT: Wait, I found the problem. Because of the way the code is indented, there is an extra parenthesis in line 23.
It should be
Great plugin! :)
There is only one thing I can't get to work: I wan't to create a shortcut for rolling back via HawkEye: Long command: /he rollback p:[Player] r:[Radius] Short command: /rollback [Player] [Radius] Also I want to define a maximum rollback amount, e.g. something between 1 and 100. The problem is that I don't know how to put user-input into something like an integer to check the amount. Also colons aren't correctly parsed somehow :/. I would appreciate it if someone could help me :)
@Coolamigo
@confuz3d
Without posting some code, I can't really help at all. You have a parenthesis somewhere that it doesn't know what to do with, likely caused by an unquoted symbol.
@Faenix1
You'll need to quote it, because it thinks that one of the slashes is a division sign. So, for instance:
'alias' = run('cmd')
@Faenix1
Try using "run( / / replace <rest of command here>)"
@Faenix1
If not, can anyone tell what dev build version your using in 1.3.1/1.3.2 that allows double slashed commands. I use this plugin for making regions (as well as the road/border to it) which made my life so much easier lol
Anyone else have the issues where if a command has double slashes it'll space 'em so the command wont work? (such as replace turns into / /replace)
@Coolamigo
I have the exact same problem :(
Hi! I`m have a problem with the 1.3.1 version. When I start my server, or try to use the plugin, i get this (also in-game):
[INFO] There was a compile error when trying to include the script at plugins\CommandHelper\auto_inlude.ms Unexpected parenthesis :: auto_incude.ms:41 :: IncludeException:plugins\CommandHelper\auto_include.ms:0
@cypherslick
They have Roadmap http://wiki.sk89q.com/wiki/CommandHelper/Roadmap, give them the fredoom to choose. New builds works properly with MC 1.3. You can find them here http://build.sk89q.com/job/CommandHelper/.
Can't you just update the plugin? The latest one is in 1.1...
@MariuszT
Yeah, sorry about that. I'm aware that it's broken again. Hopefully I can get it fixed tonight, and hopefully I fix it for good this time xD