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.
@ryguy147
I am not sure if the [$player=player()] part works, so I'd recomment this code:
Hope it works :)
@aybarsius
What error showed up with the turkish text? Maybe there are special characters like ä,ö,ü or ß. Otherwise, because I don't speak turkish, you can send me the commands you want to add and I will show you how to do it :)
Ok Now it worked when I added /island restart = msg('§cYou should better use §e/skyblock refresh§c.') But I have a Turkish Friend And I tried to do
/island restart = msg('§cBence Bunu Kullanmalısın §e/ada yenile§c.') it didn't worked then
I tried again to do /island restart = msg('§cYou should better use §e/skyblock refresh§c.') But its not working now.It Worked at the first time and now its not. I cant Understand.
My Friend Wants his plugins to run turkish commands I mean instead of /island restart he wants /ada yenile. How Can I do this If you can help me I will be very greatfull :)
What is wrong with this: /gm $gm [$player=player()] = /gamemode $gm $player
@aybarsius
Oh sorry for the late reply, I didn't have enough time to check BukkitDEV and a couple of other pages because of school.
If I get your question right, you want to block /island restart and send a message to better use /skyblock refresh.
That's not too hard, simply edd the next line to the CH config (you can of course edit the text) : /island restart = msg('§cYou should better use §e/skyblock refresh§c.')
Note: The §c thing are color codes, you can leave them out or add a few others: http:www.minecraftwiki.net/wiki/Formatting_Codes
I hope I could help in some way :)
Some Help Maybe Please?
Hello I need Some Help.I want my players to use /skyblock refresh instead of /island restart.But I cant seem to do it. Can Someone Please Helpme?
@szymekpl
That has since been fixed, it was more of a spellcheck than anything really.
@UbuntuFreak
In my config file, I added this: /spawn = run('/mvspawn '.pworld())
When I run the command in game, I get the error: "Unable to run command, script not yet compiled, or a compiler error occured for that command. To see the compile error, run /reloadaliases.
When I run /reloadaliases I get: The function .pworld does not exst; Compile error in script. Compilation will attempt to continue, however ;; COMPILE ERROR:config.txt:24 An error occurred when trying to compile the script. Check the console for more information.
Anything else I can try? Sorry, I am new to this :)
I'm getting such errors since I installed latest dev build.
Server crashes then, what should I do?
@deleted_7919568
First, make your own /spawn command: "/spawn = " The pworld() function will return the player's world, so we need to combine /mvspawn and pworld: run('/mvspawn '.pworld())
Now we can add them together (hint: only write the next line to the config.txt file unless you want to to have a not working code) /spawn = run('/mvspawn '.pworld())
Note that this will not show in the console when someone teleported to spawn. Of course it is possible to log it too, but why make is more complicated than needed? If you want to have this feature, I will show you how to do it =)
Hope I could help
Anyone know how to run a command based on the world you are in? I want /spawn to run the command /mvspawn $currentplayerworld, when $currentplayerworld is the world the player is in when running the command. Thanks!
@mattmess1221
CH is frequently updated but is in rapid enough development that there hasn't been a release build available to post here for a while. You can find dev builds at build.sk89q.com/job/CommandHelper/
Is this page ever going to be updated with an updated version?
@LazyKpox
You can get nice and very powerful dev builds on http:build.sk89q.com
Please Update it.
@Zei33
I'm happy to hear this. Thanks :)
@UbuntuFreak
You, my friend are what we in Australia call, a bloody legend. Thank you so much! Saved my ass! Everything you've told me worked.
@Zei33
The code is calling the function _cooldown() you made. But the file has changed (overwritten?) so this function/procedure no longer exists. You will need to copy the auto_include.ms file from a backup into your CommandHelper directory or re-create (write) this function again.
I guess that one of these up-/downgrades has destroyed your auto_include.ms file
@UbuntuFreak
I reverted back and it worked! Thanks!
Unfortunately now I'm having another problem :| One of my commands appears to be out dated and I've got no idea how to re make it. Currently it's:
Blessed:/b = >>> if(_cooldown(get_value('SmiteCD', player()), 86400)){ sudo('/smite') sudo('/thunder true 60') broadcast(concat(color(yellow), ('A Blessing of Lightning has been invoked by '.player().'!'))) store_value('SmiteCD', player(), time()) } else { die('Your blessing will only work once a day.') } <<<
Basically this worked absolutely fine but now it gives the following error:
InvalidProcedureException: Unknown Procedure "_cooldown"
<<main code>>
:config.txtSo clearly _cooldown is now obsolete. Anyone know what I need to do in order to make it work with the newer versions of commandhelper?
@opoq
haha thanks for reply,
my friend and i reallized that we just had to add a closed bracket after each sentence