Inactive [MECH/MISC] TriggerCmds v1.2 - 'Link Cmds to buttons/levers' [953]

Discussion in 'Inactive/Unsupported Plugins' started by Sammy, May 9, 2011.

  1. Offline

    Sammy

    TriggerCmds- 'Automation, automation, automation'
    Version: v1.2
    Download :(V1.0) (V1.1) V1.2

    Do you like this plugin ? buy me a beer !!​
    [torch] [​IMG] [torch]
    This was a popular request that made me excited :p

    With tcmds you can link any type of craftbukkit or plugin commands to buttons/levers/plates
    It's simple too use and it has persistence so you can reboot your server without loosing anything =)

    Tutorial:
    Make a trigger:
    1. /tcmds edit TriggerName - Opens/creates the trigger edit
    2. /tcmds cmd $me:/tp $ply $me - Makes you teleport the player that presses the button to you
    3. Left Click on the switch - Regs the switch and closes the edit
    Delete a trigger:
    1. /tcmds edit TriggerName - Opens/creates the trigger edit
    2. /tcmds del - Deletes the trigger from the db
    Delete a Link:
    1. /tcmds edit TriggerName - Opens/creates the trigger edit
    2. Right Click on the switch - Deletes the switch and closes the edit
    Runners:
    • $me: - The cmd will be executed by the trigger maker (only if is online)
    • $ply: - The cmd will be executed by the player that pressed the trigger
    Variables:
    • $me & $ply - Used inside the command you want to declare
    Features:
    • Simple way to link cmds to triggers
    • Works (in theory) with almost any command
    • Uses persistence to save all the triggers
    • Has permissions
    Commands:
    Code:
    commands:
      tcmds:
        aliases: [triggercmds]
        description: TriggerCmds management
        usage: |
            /<command> list - List of your triggers.
            /<command> edit [name] - Starts trigger edit.
            /<command> cmd [cmd] - Command registration/modification.
            /<command> del - Deletes the trigger.
            /<command> help - TriggerCmds Help Page.
    
    Permissions:
    Code:
    triggercmds
    To do:
    • Scripts (multi-commands)
    • onBreak deletes link
    • User groups (I might put it... still not sure) (tks @QuackzMcDuck )
    • Add a fakePlayer to overwrite permissions (tks @QuackzMcDuck )
    • Link the triggers with redstone (I have to find a cool way)
    • Timed commands (maybe!! I guess ^^)
    • Button Cooldown
    • One Time per player buttons (maybe on 1.4/1.5)
    Changelog:

    Version 1.2
    • Added the variables $me and $ply
    • Recoded some parts of the reg
    • Removed redundant cmds
      • /tcmds stop is now automatic when Left Click or Right Click
    • Added pressure plates
    • Reg Trigger Link - Left Click
    • Del Trigger Link - Right Click
    Version 1.1
    • Fixed yml error (sorry about that)
    • Added delete function (never rush a release)
    Version 1.0

    • First release
    !!! Lets give tks to @Cybird and @Jonathan Thorpe for the idea !!!​
     
  2. Offline

    Delocaz

    Permissions:
    Please make that!
     
  3. Offline

    Imm0rt41

    i don't know if your still working on this, but if you are, there's a problem with it that causes the person who created the trigger to execute the command, even when someone else activates the trigger.
     
  4. Offline

    Hotshot

    Is it possible to have two cmds for one button/pressureplate/lever?
     
  5. Offline

    hugonoob

  6. Offline

    Smokie23

    I don't really get your plugin. But I think it may be what I'm looking for.

    Can you click on a sign and have the user change to a different permissions group?
    For example: everyone that joins my server is defaulted to the 'default' group (PermissionsBukkit). Is there a way I can just make a sign and have them change groups automatically?
     
  7. Offline

    Rexel

    The most outdated plugin, that still works :D

    It's awesome, please update and add more functionality
     
  8. Offline

    Rickebo

    I love this Plugin!
     
  9. Offline

    Wahrheit

    Sammy Is it possible for you to send me the source for this? No need for you to update it for all, the work can be done, just need to have it usable. :)
     
  10. Offline

    Rexel

    Please someone update this, all my lovely buttons don't work ;(
     
  11. Offline

    flungo

    Hi Sammy,

    I am willing to continue development of this plugin if you wouldn't mind? If you send me the source I can get this plugin back up and running again!
     
  12. Offline

    Aza24

    Looks like he's gone... Just decompile it and update to the new event system.
     
  13. Offline

    Greylocke

    flungo Sammy hasn't even logged into the forums here for 4 months.

    I'd say 'go for it'.

    You might want to check here for source material
     
  14. Offline

    Rexel

    I'd say go for it aswel :D
     
  15. Offline

    flungo

    Okay guys, will take a look at it either later today or tomorrow. Got a lot of free time tomorrow to at least get this working.

    Thanks for the link but there is no source code for tiggercmds there. A bunch of other plugins but not triggercmds. I have emailed Sammy to see if I can get hold of it.

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

    flungo

    Just as an update I have one small bug to iron out then some testing of the permissions to see if they still work. Particularly if they will work with anything other than vPerms.
     
  17. Offline

    Aza24

    Just use Bukkit SuperPerms
     
  18. Offline

    Rexel

    SO can't wait to have this working again :D
     
  19. Offline

    flungo

    Okay. Aza24 Greylocke Rexel. I have posted it on BukkitDev, just waiting on approval. Note that the beta file is literally a work around that uses op as permissions and doesn't work perfect. The version that uses SuperPerms will probably be up by the time you all read this and I will fix the bugs by decompiling this old version to find what is missing from the source I was given!

    BukkitDev Link

    UPDATE: Not as buggy as I thought, but there was a huge chunk of code missing. Going to add it in now. There are some new features but I need to work out how to use them properly before documenting them.
     
  20. Offline

    Rexel

    I tried 1.3.0
    Code:
    [SEVERE] Could not load 'plugins\triggercmds.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.Error: Unresolved compilation problems:
        The import com.nijiko cannot be resolved
        The import com.nijikokun cannot be resolved
        PermissionHandler cannot be resolved to a type
        PermissionHandler cannot be resolved to a type
        PermissionHandler cannot be resolved to a type
        Permissions cannot be resolved to a type
        Permissions cannot be resolved to a type
        PermissionHandler cannot be resolved to a type
     
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:148)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:289)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:213)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:299)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:275)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:56)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:188)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:478)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.Error: Unresolved compilation problems:
        The import com.nijiko cannot be resolved
        The import com.nijikokun cannot be resolved
        PermissionHandler cannot be resolved to a type
        PermissionHandler cannot be resolved to a type
        PermissionHandler cannot be resolved to a type
        Permissions cannot be resolved to a type
        Permissions cannot be resolved to a type
        PermissionHandler cannot be resolved to a type
     
        at com.SySammy.triggercmds.tCmds.<init>(tCmds.java:12)
        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)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
        ... 8 more
    hopefully works soon :D
     
  21. Offline

    flungo

    God damn it. I am getting that too. It was a problem with the old permissions system that was set up by the looks of it and even with 1.3.1 that I am testing I am now getting it. Will hopefully have this up today. Sorry about the delay guys.

    Found the problem. The reason it worked fine the first time I compiled it was because I hadn't deleted vPerms but just before uploading I thought "Let me recompile for good measure" but without the vPerms that I had told Eclipse was there it just didn't want to compile. Wasn't actually a plugin problem, but a compiler issue. I have re-uploaded 1.3.0 recompiled and 1.3.1 should be up within the next few hours.

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

    1928blue

    i get this message:[SEVERE] could not load 'plugins/triggercmds.jar............ what do i do?

    sorry, i just signed up on the forums, if ur wondering what all this junk is....

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

    flungo

  24. Offline

    Roadcrosser

    Could this please be updated? I could really use this.
     
  25. Offline

    ryantheknight

    Could you add a feature where the command could be executed as the server (ex. like you typed it into the console)? If you could, this plugin would be perfect for me.
     
  26. Offline

    DailyCakeSlice

    Yep. Im getting the same thing as 1928blue.
     
  27. Offline

    jberior

    This plugin is awesome so could you please update it? :D
     
    Zenithas likes this.
  28. Offline

    Justinwiz

    Please update! This plugin is very useful!
     
  29. Just what I need... please update!!!
     
  30. Offline

    Dyrocraft

    I found an updated Version just click here
     
  31. Thanks! =D
     

Share This Page