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

    sk89q

    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]

    [​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.

    [​IMG]

    [​IMG]
     
    Pinoyskii, DHLF, beleg and 6 others like this.
  2. Offline

    Lock

    Quick question:
    Is there API that could suppress the text output of another plugin's command?

    Edit: Answered, Thanks!
     
  3. Offline

    Jdbye

    A staff member was unable to use any commands and this error appeared every time he tried:
    Not sure if it's this plugin's fault or JSONAPI so I'm reporting it in both topics. Had to delete the CommandHelper aliases file (persistance.ser) to fix it, so it's probably this plugin.
     
  4. Offline

    Milhouz

    Does this also work with Essentials? I find that CommandBook is harder to configure and essentials has ease of use.
     
  5. Offline

    sjrc6

    help me for almost every command i use it wont work and just says to many arguments // [on|off]
     
  6. Offline

    Squirzy

    Hey I have a question, I want to make a global alias for /market = /warp market, but when I try I can only make it per player. How can I make it global?

    I have read the wiki but can't see what I am looking for, unless I have missed something

    Thanks
     
  7. Offline

    MrMagical

    Global aliases go in the config.txt file. After editing the file, execute the command /reloadaliases to update.
     
  8. Offline

    nick7397

    I can't use macros.
    Such as:
    /lu=/msg Hi\/ci\ etc.

    Can i make time events?

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

    eRko16

    Not working on CB1.0 with PermissionsEx, I mena aliases not working
     
  10. Offline

    Korrosive

    @sk89k I need a aliases for giving a subzone in Residence, so I need two variables with a dot. My alias need to be: /res give $residence.$player $player, but if I put the dot before the second variable, the command don't run.

    So, If the alias is: /+ Example Player > /res give Example.Player Player

    Any idea?
     
  11. Offline

    eRko16

    Please update it for 1.0, dont be lazy
     
  12. Offline

    Scandragon

    Works fine on latest RB for me..
    Except ofcourse that labels are ignored..
     
  13. Offline

    MrMagical

    Put a space on both sides of the backslashes.
    Code:
    /lu=/msg Hi \ /ci \
    Not yet. Events are likely to come in the next release.

    Code:
    /+ $residence $player = run(concat('/res give ', $residence, '.', $player, ' ', $player))
    Please describe what issues you are experiencing.

    Please post a config.txt with this problem so that it can be tested properly.
     
  14. Offline

    soulgriever

    when i try to run the give command with essiantials its not running the sub ids properly e.g. /give $player 351:4 64 but i think cause of the : it changes it to a space
     
  15. Offline

    rylinaux

  16. Offline

    eRko16

  17. Offline

    Scandragon

    try concat('/give ', $player, ' ', $item, ':', $dmg, ' ', $qty)
    Yes, there's probably a better way, but this would work.. Adds the spaces where needed, and the colon where it should be

    It was solved.. I misread the docs
     
  18. Offline

    phanaticd

    i got this error. i made a alias for /stop that is
    /stop = /kickall server is stopping comeback later \ /stop

    and I get spammed by random players saying they are typing /stop even though they arent spamming at all. it of course went away after i removed the alias but here is the error after gettin massive amounts of spam saying they player tried the command


    http://pastebin.com/yGJd0MzL
     
  19. Offline

    pallyy

    It makes my server stop itself please help!!
     
  20. Offline

    MrMagical

    It's likely to be caused by the /list alias in /plugins/CommandHelper/config.txt, so remove that part.

    If that doesn't solve it, try running with an empty config.txt. If that works, slowly add things back in so you can identify the problem.
     
  21. Offline

    pallyy

    Worked thank you very much =D
     
  22. Offline

    VoltageB

    The next recommended build is for Minecraft 1.2, R5, and I and everyone who uses this plugin will greatly appreciate it if you can get a head start on the plugin so it's update to support the new revision when Minecraft 1.2 is officially released along with Bukkit R5.
     
  23. Offline

    Puremin0rez

  24. Offline

    yat_

    Can I get a absolute location of a player?

    When a player walk in to specified location and type the command /get snowball , then he can get some snowball.
    But if he isn't stand on the specified location and it will receive messenger : "Please get to the snow house"
     
  25. Offline

    wraithguard01

    So, I'd just like to update everyone real quick on the status of CommandHelper. I'm not dead, by any means, nor has CommandHelper been on hiatus, in fact, it's been in heavy development for quite a while! I know it's been a loooong time since a stable release, but one is coming in the next few weeks (in combination with 1.2 release). There have been some MAJOR additions to CH, and the beta testers have been having fun with them for a while now. The biggest addition by far is the event framework. The framework in general is mostly complete, however there are a few things missing that I still intend on adding, but there are 5 events that can be used to trigger scripts. You can now fire off a script if any of the following events occur: player join, player spawn, player death, player interact, and player chat. Events can be manipulated as well, so you can completely change up the default behavior and replace it with your own.

    The next biggest feature, is arrays being associative now. Be sure to check out the new page on the wiki once the release drops.

    There are almost 250 functions now! The possibilities for you customizing your server are becoming nearly endless. I intend on adding more and more events as I get time, and I hope to eventually wrap most all of the useful events, which would allow you to write almost any plugin you want directly in CH!

    So, what's next? First, I'm going to finish up the event framework, and add the top 10-20 events. Then, timers, which will allow you to set off a script after a certain time period, or every so often, SQL support, so you can easily move data in and out of CH, and tons of other ideas I have. CommandHelper is turning into a larger and larger project, and is becoming more and more a fully featured platform on which to code, instead of a simple alias plugin.

    Also, as to the news about Bukkit going away at some point (maybe): I also added an extra layer in CH to make supporting multiple server types fairly easy, so CH will be ported over to the official API, and will also remain compatible with bukkit, all without you having to change your scripts at all! So, don't fret over compatibility issues in the future, I'm committed to as much backwards compatibility as possible. Having said that, there are a *few* breaking changes in this next release, however, they won't affect many of you, and I'll have full details on them before the release.

    Be sure to look for a detailed changelog as well as a release in the coming weeks, and I hope you guys enjoy all the new stuff!
     
    phanaticd likes this.
  26. Offline

    maller

    I'm getting the following error on 1.1 R5 #1966

    Code:
    2012-02-29 17:10:15 [SEVERE] Something when wrong while trying to load up sk_region_info:
    2012-02-29 17:10:15 [SEVERE] java.lang.ClassNotFoundException: com.sk89q.worldedit.BlockVector
    2012-02-29 17:10:15 [SEVERE]    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    2012-02-29 17:10:15 [SEVERE]    at java.security.AccessController.doPrivileged(Native Method)
    2012-02-29 17:10:15 [SEVERE]    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    2012-02-29 17:10:15 [SEVERE]    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    2012-02-29 17:10:15 [SEVERE]    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    2012-02-29 17:10:15 [SEVERE]    at java.lang.Class.getDeclaredConstructors0(Native Method)
    2012-02-29 17:10:15 [SEVERE]    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    2012-02-29 17:10:15 [SEVERE]    at java.lang.Class.getConstructor0(Class.java:2699)
    2012-02-29 17:10:15 [SEVERE]    at java.lang.Class.newInstance0(Class.java:326)
    2012-02-29 17:10:15 [SEVERE]    at java.lang.Class.newInstance(Class.java:308)
    2012-02-29 17:10:15 [SEVERE]    at com.laytonsmith.core.functions.FunctionList.initFunctions(FunctionList.java:40)
    2012-02-29 17:10:15 [SEVERE]    at com.laytonsmith.core.functions.FunctionList.<clinit>(FunctionList.java:28)
    2012-02-29 17:10:15 [SEVERE]    at com.laytonsmith.core.MScriptCompiler.compile(MScriptCompiler.java:408)
    2012-02-29 17:10:15 [SEVERE]    at com.laytonsmith.core.AliasCore.reload(AliasCore.java:265)
    2012-02-29 17:10:15 [SEVERE]    at com.laytonsmith.core.AliasCore.<init>(AliasCore.java:56)
    2012-02-29 17:10:15 [SEVERE]    at com.laytonsmith.commandhelper.CommandHelperPlugin.onEnable(CommandHelperPlugin.java:125)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:343)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:364)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:227)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:210)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:500)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.Bukkit.reload(Bukkit.java:170)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:430)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:426)
    2012-02-29 17:10:15 [SEVERE]    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:574)
    2012-02-29 17:10:15 [SEVERE]    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
    2012-02-29 17:10:15 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
    2012-02-29 17:10:15 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    2012-02-29 17:10:15 [SEVERE] Something when wrong while trying to load up sk_region_overlaps:
    2012-02-29 17:10:15 [SEVERE] java.lang.ClassNotFoundException: com.sk89q.worldguard.protection.regions.ProtectedRegion
    2012-02-29 17:10:15 [SEVERE]    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    2012-02-29 17:10:15 [SEVERE]    at java.security.AccessController.doPrivileged(Native Method)
    2012-02-29 17:10:15 [SEVERE]    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    2012-02-29 17:10:15 [SEVERE]    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    2012-02-29 17:10:15 [SEVERE]    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    2012-02-29 17:10:15 [SEVERE]    at java.lang.Class.getDeclaredConstructors0(Native Method)
    2012-02-29 17:10:15 [SEVERE]    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    2012-02-29 17:10:15 [SEVERE]    at java.lang.Class.getConstructor0(Class.java:2699)
    2012-02-29 17:10:15 [SEVERE]    at java.lang.Class.newInstance0(Class.java:326)
    2012-02-29 17:10:15 [SEVERE]    at java.lang.Class.newInstance(Class.java:308)
    2012-02-29 17:10:15 [SEVERE]    at com.laytonsmith.core.functions.FunctionList.initFunctions(FunctionList.java:40)
    2012-02-29 17:10:15 [SEVERE]    at com.laytonsmith.core.functions.FunctionList.<clinit>(FunctionList.java:28)
    2012-02-29 17:10:15 [SEVERE]    at com.laytonsmith.core.MScriptCompiler.compile(MScriptCompiler.java:408)
    2012-02-29 17:10:15 [SEVERE]    at com.laytonsmith.core.AliasCore.reload(AliasCore.java:265)
    2012-02-29 17:10:15 [SEVERE]    at com.laytonsmith.core.AliasCore.<init>(AliasCore.java:56)
    2012-02-29 17:10:15 [SEVERE]    at com.laytonsmith.commandhelper.CommandHelperPlugin.onEnable(CommandHelperPlugin.java:125)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:343)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:364)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:227)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:210)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:500)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.Bukkit.reload(Bukkit.java:170)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:430)
    2012-02-29 17:10:15 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:426)
    2012-02-29 17:10:15 [SEVERE]    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:574)
    2012-02-29 17:10:15 [SEVERE]    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
    2012-02-29 17:10:15 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
    2012-02-29 17:10:15 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    2012-02-29 17:10:15 [INFO] CommandHelper: Welcome to this server, which is running CommandHelper!
    2012-02-29 17:10:15 [INFO] [CommandHelper]: Main file processed
    2012-02-29 17:10:15 [INFO] [CommandHelper]: 14 alias(es) defined
     
  27. Offline

    jrewick

    Any ETA on an update?
     
  28. Offline

    wraithguard01

    3.3.0 is released! Download link: http://bit.ly/yz59kL Full changelog: http://wiki.sk89q.com/wiki/CommandHelper/3.3.0

    This version is compatible with the current 1.2 builds of CraftBukkit.

    Tons of new features have been added. Check the full changelog for all the details. Also note that there are update breakages, so if you're upgrading from an old install, be sure to read about that at the top of the changelog.

    * Events have been added! Now you can trigger scripts on player interaction, player login, player spawn, player death, and player chat! Look for more events in future releases. Read up on events at http://wiki.sk89q.com/wiki/CommandHelper/Events
    * Persistance functions have been greatly improved!
    * 102 new functions! There are now almost 250 functions in total!
     
  29. Offline

    palisade

    For anyone still trying to figure out how to turn off the obnoxious ascii art that prints out in our logs for CommandHelper, change the following in preferences.txt in your plugins/CommandHelper.

    show-splash-screen=false

    Also, CommandHelper now advertises itself to users that log in, but admins aren't exempted so you may never realize this is happening. The magic for this happens in main.ms, just comment out every line in here.

    As for the sk_region exception, I can't figure that one out. But, at least CommandHelper continues to work correctly, so long as you can bear ignoring the exception showing up in your logs until he fixes it.

    NOTE: Not sure what I did but suddenly sk_region exception vanishes... I commented out pretty much all of the configuration files. I just can't pin down which thing caused it. Sorry.

    Hope this helps everyone.
     
  30. Offline

    phanaticd

    thanks... that splash screen freaked me out :p im glad this is updated tho im gonna write some cool commands

    is there a way I can get an event for when a player hits another player? I want to be able to ban someone by whacking them with a gold axe
     
  31. Offline

    Adam1999o

    Please, update. I really need this plugin.
     

Share This Page