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

    Sithnar

    this doesnt seem to work for me on the latest rb, i press the button and it doesnt run the command.

    Do i have to redo all my buttons? (im using 1.2)
     
  3. Offline

    Sammy

    That's strange, try making a new button and see if it works, if not wait until I release the new version (bet on next week)
    Cheers
     
  4. Offline

    Snaipe

    Would it be possible to run commands as Console ?
     
  5. Offline

    Sammy

    Wait until 1.3 ;)
     
  6. Offline

    Sithnar

    works if i remove the button and readd it

    is there a better way to do the /tcmds list

    it scrolls off the screen so i cant see them ! argh!
     
  7. Offline

    Sammy

    Well for that you need a clientmod, I think there's one that makes the chat scrollable
    Maybe can make a list with pages for the new release =)
     
  8. Offline

    Lexion

    seems the command is still in the database but you have to edit ti and link it to the button again, no need to enter the cmd part again.

    when i do a list it does show the full details including the location of the button
     
  9. Offline

    Reazem

    free bump!
    I will donate if you include scripts plzplplzpzlpzlz :D

    omg fakeuser is also fucking awesome #$%#@$@$#%D

    AND COOLDOWN!!@ WRE#@$%@#FEF
     
  10. Offline

    Sithnar

    we have a real problem with this plugin,
    its not saving the buttons between server restarts, some it remembers, others it forgets,

    just now i logged into my server, button wasnt working, so i readded it. it was working, so i did a save-all and stopped the server, booted it back up and the button doesnt work again!!

    I checked in my SQLite database browser and the buttons are listed, so im not sure whats going on. were running CB 953 and TCMDS 1.2

    Linux server if that makes a diff.
     
  11. Offline

    Greylocke

    FakeUser and MultiCommands are gonna rock! Thank you for putting this together!
     
  12. Offline

    drake0038

    Just wondering, is it possible to add support for making a command launch out of the server terminal? If it is something like that would be appreciated!
     
  13. Offline

    darth2499

    can you make it so if you pass a certain area (maybe a cuboid area) then it does a command. Sometimes people doesn't push the button or jump over the plate so...

    Also for the delete trigger, this only works if your the maker of that trigger, correct?
     
  14. Offline

    Milchshakee

    Can you link 2 Commands to 1 Button ? That would be really great :D
     
  15. Offline

    Greylocke

    From the original post:

    To do:

    • Scripts (multi-commands)
     
  16. Offline

    Sithnar

    @Sammy

    Any idea what is causing my triggers to not be persistant between server reboots?

    its getting rather annoying going round and fixing all the triggers every time (we have ALOT!)

    Also were not running RB1000 were still on 953
     
  17. Offline

    Milchshakee

    Sometimes I get this error..but i don't know why this happens. it is only sometimes.
    Code:
    011-07-27 10:24:25 [SEVERE] Could not pass event PLAYER_INTERACT to TriggerCmds
    java.lang.NullPointerException
        at com.SySammy.triggercmds.Methods.ExecuteCmd(Methods.java:142)
        at com.SySammy.triggercmds.tListener.onPlayerInteract(tListener.java:38)
        at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:63)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:457)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-27 10:24:25 [SEVERE] Could not pass event PLAYER_INTERACT to TriggerCmds
    java.lang.NullPointerException
        at com.SySammy.triggercmds.Methods.ExecuteCmd(Methods.java:142)
        at com.SySammy.triggercmds.tListener.onPlayerInteract(tListener.java:38)
        at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:63)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:457)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  18. Offline

    Sithnar

    further information on this. its only loading triggers for the default world. any other worlds just get ignored, they ahve the information in the database but it doesnt seem to load it
     
  19. Offline

    Moe041991

    any chance for an 1000 update?
     
  20. Offline

    Zenithas

    o/

    Working fine in [1000] no errors, plenty of opportunities for conflicts that it's completely ignoring.
     
  21. Offline

    Snowy007

    great! definetely going to use this plugin. Would love the FakePlayer option.
    most users don't have permission for the butcher command and i would like to use it when they press a button. That way my mob arena will reset. (all mobs will go away) but i don't want them to rely on me being online all the time....

    edit:
    wait! question!
    if i if i use '/tccmds cmd $me:/butcher 50' for a trigger and someone presses the button.
    will mobs be cleared in an area of 50 blocks around the players location or around me? (the one that created the button)
    i'm afraid it will clear mobs in an area around the creator of the button doesn't it?

    edit2:
    also where does it save the triggers? The folder in plugins/triggercmds is empty..
     
  22. Offline

    KaLul

    ok it works very well ignore my last post! BUT can u add option so all users can get all permission by using the lever or button? so normal member can jumpthrough or so?
     
  23. Offline

    jereien

    how i would like to see a plugin like this add the functions to detector rails. That way you could have carts trigger server messages announcing incoming or outbound trains.
     
  24. Offline

    Slyvr

    Is there a way to link cmds to onPlayerDeath ?
     
  25. Offline

    Jaminb2030

    you can trigger redstone that hits a dispenser that pops out a block onto a pressure plate with the tcmds command you need,
     
  26. Offline

    Snowy007

    Talk about improvising. xD
    Only 2 problems though..
    1. i guess it would only work every 5 minutes, as items only disappear after 5 minutes.
    2. you would have another dispenser to take care of, refilling it every now and then.

    also naturally the $me variable wouldn't work as it is an item triggering it.
     
  27. Offline

    Jaminb2030

    well this is just an idea but you can have the redstone trigger a piston that will wash lava over it taking out the items, or find a plugin to lower the vanish rate for dropped items. As for #2 my server fixes this by having a always online admin account. and also you fill it full with 64 stacks of dirt it will not go emptie anytime soon and if it is then there are plugin that will let you fill a dispenser from a nearby large chest

    Links to helpfull plugins:
    http://forums.bukkit.org/threads/mi...eyll-be-never-empty-auto-refill-818-819.5027/

    http://forums.bukkit.org/threads/ge...refill-your-chests-and-dispensers-1000.20097/


    http://forums.bukkit.org/threads/me...enser-racks-or-chests-permissions-1060.21518/
     
  28. Offline

    L33m4n123

    Hey!

    I tried to install that plugin because it sounds rly rly great. But it doesn't work at all. It isn't recognized as a plugin.

    What I do:
    - put the .jar in the plugins folder
    -reload / restart the server (tested both)
    - triggercmds folder is created
    - /plugins doesn't show it
    - all /tcmds commands are not recognized. It says Unkown Command

    Could it be, it is because I use cb #1060?

    Whats running on my server:

    CB #1060
    Essentials 2.5.7
    iConomy 5
    PEX 1.13

    and then some small stuff like logblock, mcbans, Factions and that stuff but that shouldn't interfier with it I think
     
  29. Offline

    CyberServices

    Is it possible to add 2 or more commands to one trigger? I created a maze and i want it to give the winner an item then teleport them so they cant abuse the trigger. Is there any way?
     
  30. Offline

    opoq

    Hey @Sammy I've got an issue with Tcmds apparently not sending the command after the server has been running for a while, and also after a player gets "kicked for moving too fast (hacking? :( )"
    I adore this plugin and depend heavily on it, any chance of an update??

    Thanks!
     
  31. Offline

    zenyl

    Thx a bunch; Great plugin! ;) - /give Sammy 357 64
     

Share This Page