Inactive [MISC] CommandHelper [3.2.0] - Repeat commands! Aliases! Advanced command scripting! [1000]

Discussion in 'Inactive/Unsupported Plugins' started by sk89q, Feb 16, 2011.

  1. Offline


    CommandHelper is a utility plugin for working with commands.

    • Build your own commands without knowing Java or having to make a plugin
    • Repeat your last command with /.
    • Per-player command aliases
    • Global command aliases

    [​IMG] CommandHelper 3.2.0

    [​IMG] Requirements: Java 1.6+ required. Mac OS X users may have to update their Java version. In addition, you need "WorldEdit," but the download linked above has a version with WorldEdit already bundled.


    Pinoyskii, DHLF, beleg and 6 others like this.
  2. Offline


    I don't like it when plugins place files in the root..
    When you pay for hosting, you don't always have access to the root..

    In my case, I only have access to plugins directory.. Can't even use plugins that doesn't automatically create their setting files, as I can only upload .jar files (and world.yml) unless I zip them and send the zip to support
  3. Offline

    Jonathan Bloom

    Where do I put the files for it to read? I put my file in the root directory and made an alias that was @read NAME.txt, but the alias isn't loading.

    Nevermind, got it to work. Is it possible to add colored text support for read items?
  4. Offline


    I wanna have an alias for manpromote. So I've added :

    Reloading the plugins I entered /promote USER Admin and got an error that the arguments would be wrong. But these arguments work with the nonalias. So can u tell me whicht variables I have to use?
  5. Offline


    Try /manpromote %1
    I don't know how many parameters must be stated in manpromote, but if it's name and group, add %2
  6. Offline


    Tested with new Recommended CB#600:

    2011-03-30 01:31:45 [SEVERE] Could not load plugins\CommandHelper.jar in plugins: null
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(
        at net.minecraft.server.MinecraftServer.e(
        at net.minecraft.server.MinecraftServer.a(
        at net.minecraft.server.MinecraftServer.d(
    Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        ... 8 more
    Caused by: java.lang.VerifyError: class com.sk89q.commandhelper.CommandHelperListener overrides final method onPlayerCommandPreprocess.(Lorg/bukkit/event/player/PlayerChatEvent;)V
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at Source)
        at Source)
        at$000(Unknown Source)
        at$ Source)
        at Method)
        at Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at com.sk89q.commandhelper.CommandHelperPlugin.<init>(
        ... 13 more
    pls Update :)
  7. Offline


    This :(
  8. Offline


    I will be updating this on Friday (PST).
  9. Offline


  10. Offline


    Thanks for updating, I love this plugin!
  11. Offline


    When the plugin first runs is it supposed to make a folder? because it isent. i cant find global-aliases.txt

    and when i type /alias test /give ^ 302 1
    just says cant find user ^?
    i cant use ^ to change a name when making alias?
  12. Offline


    Does /. work even?
  13. Offline


    Works fine with b617, thanks.
  14. Offline


    sk, I can't get onto your wiki right now.. But doesn't worldedit also use /. for something?
    Seem to remember seeing that yesterday when fixing some permissions for my OPs

    And on that note, onto the worldguard thread to make a post
  15. Offline


    how do i get the username of the person running the command
    it's not replaceing ~username or ^
  16. Offline


    I can't get /perform to work on individual people either. /perform * works, but if i just /perform ~username command it doesnt work, it just returns "No users were matched" Does this work in 1.4_01 with CB 617, or is that particular command broken?

    Great plugin btw, i love it :D
  17. Offline


    Every time I use /each or /perform it just says "/perform <targets> <cmd>" or "/each <targets> <cmd>".
    Any fixes?
  18. Offline



    Just a quick question, can we pass the entire arguments line to a command?

    So, instead of
    /cmd %1 %2 %3 %4 ....%99 %100

    we can do
    /cmd %0 {0 for ALL args, otherwise number em as needed}
  19. Offline


    same here :/
  20. Offline


    Could you please add CommandHelper to minerepo?
  21. Offline


    @sk89q : Please add a changelog and possibly test this against latest RB.
  22. Offline


    This would be a very useful plugin to make some end-user commands a lot shorter and easy to use. However, it doesn't seem to be working at the moment. Using Bukkit 684 and the global aliases doesn't seem to work. Last command doesn't work either, it just prints the command in a gray color on the chat but doesn't actually execute it. Global aliases just doesn't do anything.

    Craftbukkit 684
    ComandHelper 2.0.2
    My global-aliases.txt (put in [server root]/aliases/)
    /permissions -reload all
  23. Offline


  24. Offline


  25. Offline


    Nice to see an update on this! And what an update! This is basically a completely different plugin. A lot more complex, but I like it :).

    Now, as far as I've understood the config.txt stores the "global" commands now (with some restrictions if using Permissions), but where are the user aliases stored? I'm guessing they are directly compiled and not store in a .txt file?

    Also, /viewalias (/viewaliases) doesn't work for me, it doesn't show any aliases. I defined some both in config.txt and with my character.

    EDIT: Forgot to mention I'm using craftbukkit 684 (and CommandHelper 3.0-beta1), so maybe that's the culprit. Also, is the config file supposed to be recompiled every time I use ANY command? Seems to do so according to my console right now.
  26. Offline


    how do i use the alias command now ingame?
    this it like is /alias getplayername /tphere playername???
  27. Offline


    my alias doesn't work anymore for some reason

    /money %1 %2 %3 %4 %5
    just getting unknown console command?
  28. Offline


    Working on the 1.5 RB (#733). Great job with the update!

    @Ratchet - If you've upgraded to CommandHelper v3, you need to rewrite all your aliases in the new format in a different file.
  29. Offline


    I see..

    well, i've tried:

    /gil $ = /money

    in config.txt and it's not working :|

    come to think of it, even the /time example alias isn't working

    /time $time = /time set if(equals($time, 'day'), 1, if(equals($time, 'night'), 13500, $time))

    I /time day ingame and nothing happens, no message and the time doesn't change?
  30. Offline


    I do like that the new plugin allows proper variable names, but for whisper - and other communication commands - it has doubled the amount of variables needed;

    # Commandbook
    /w $player $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 $32 = /whisper $player $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 $32

    Is there not some sort of method to create a special variable, for words and the like?

    Yes there is. Called a final variable, it's hidden away in the advanced guide, for those who care:


    However, v3 *has* broken my herochat global commands:

    / $ = /global $
    /1 $ = /global $
    /! $ = /global $

    The first is a blank space, "/ ", which I can see some scripting languages having problems with, but the other two are very clear commands.

    /gil $amount = /money $amount

    The $ is a variable.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 9, 2016
  31. Offline


    thanks, but I tried that and it's not working!

Share This Page