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

    ValBGaming

    Does this work with pressure plates?
     
  3. Offline

    Sammy

    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
     
  4. Offline

    ValBGaming

    Ah, I must of missed that.

    I'll give it a try. :)
     
  5. Offline

    TuRmoiLxx

    Button 1 - End of the world (Sets of TNT).
    Button 2 - Spreads Diamonds (Blows up Chests).
    Button 3 - Nothing....

    So Mr. TuRmoiL, which would you take for world domination?
     
    Sammy likes this.
  6. Offline

    Radza

    Hello, first, awsome plugin, cose it makes posible group buy sistem, each group have diferent skills , permisions BUT 1 problem now, i need keep my Admin player online all the time, cose all commands are "$me:/manpromote $ply group" whitout me online, it dont work :( so, if you will make
    "Add a fakePlayer to overwrite permissions (tks @QuackzMcDuck )" work, it will be realy greate :)
     
  7. Offline

    Sammy

    That's what I really want to implement, the code is already on the plugin but I had some problems with it so I didn't activated it for this version...
    The only problem is that I'm on final exams so I don't have the time to code...
    Sorry guys !
     
  8. Offline

    Daniel Few

    @Sammy
    Heya! Great plug-in! Will help so much on my server.
    One request, would it be possible for you to add an option to ask for confirmation to the command.
    Eg, when you link a buttom to a command you had a 'confirm' option that can either be true or false. And when press, it says something like "Are you sure you want to do this?" Or something like that.
    Maybe customizable messages per button but a simple confirmation would be good :)
    Looking forward to testing this!
    -DanJames
     
  9. Offline

    Sammy

    Well, I have final exams until at least July... so I won't be updating soon sorry :confused:
     
  10. Offline

    Daniel Few

    Thats ok. Do you think this is a feature you could add later. I'm happy to wait as its not urgent :)
    Good Luck with your exams though,
    -DanJames
     
  11. Offline

    sbeex

    Nice plugin !
    Could you add the possibility to use pressions block as button also ?
     
  12. Offline

    Sammy

    What are pression blocks ? :confused:
     
  13. Offline

    sbeex

    Pressure plate sorry
     
  14. Offline

    Sammy

    Read the topic, it already does since v1.2 was released
     
  15. Offline

    Devian50

    What I mean is that there is a player variable but if I want the console to do something because if the player is a variable the command would be issued as if the player had issued it correct? so I want a console variable so that I can have a sort of trial system for promoting players so they are first guests then they hit a button to be promoted and teleported.
     
  16. Offline

    Sammy

    Oh now I get it, that's on the TODO list, its the first think I'll do for the v1.3... but don't expect it soon, I'm on final exams until July
    cheers mate
     
  17. Offline

    Devian50

    lol thanks! good luck!
     
  18. Offline

    s1ck3st

    is it possible to link multiple commands to one single switch?

    very, very useful though :) keep up the good work
     
  19. Offline

    Jonathan Thorpe

    Not yet... it would be great to have a switch with two different commands assigned, such as on/off toggle states for commands from other plugins such as PVPToggle, for example. Sammy is busy at the moment but I think he wants to look at implementing this in the next version when he gets back to coding :)
     
  20. Offline

    s1ck3st

    cool!
    'cos I'd like to use it as kinda 'pay-per-use' for almost every command based thing on our server!

    thx, have fun & ejoy ur day :)
     
  21. Offline

    Kauri14

    you are a god[diamond]
    i have needed this for soooooo longggggggg [diamond]
     
  22. Offline

    Reazem

    I will download as soon as it supports sscripts
     
  23. Offline

    Sammy

    Thank you my friend !
    Well, you'll have to wait a bit then, I'm on final exams until July =/
     
  24. good luck with the exams Sammy,

    Great plugin, we use this to set the station on minecart mania :)
    removes the need for the buttons to move points and shit like that...
    :)
     
    Sammy likes this.
  25. Offline

    Elvis

    I dont know if this is possible but this would be a really neat idea, since this works with permissions and if the player doesnt have the required command then it wont let them activate it.
    So what i was thinking is make it compatible with someone using the command but the command works for the player clicking the button.
    For Example
    Say i make a button but instead i do this $me:/god $ply
    doing $me: should only be for an admin the $me makes him do the command but make it as if the player clicking the button do hope you understand not sure if u can do this it would be epic though :p
     
  26. Offline

    Sammy

    If you read the thread you can see that it's already on the todo list, but as I said before I'll only be back in July :)
    Cheers
     
  27. Offline

    LukeD1994

    Absolutely fantastic mod. Great work by the developer.
    I've just finished building an admin control tower specifically for this.
    Please please please add the multi command function, along with delay between the commands (like "server shutting down in 10 seconds" then 10 seconds later issue the /stop cmd) I would love this
     
    Sammy likes this.
  28. Offline

    Sammy

    Sure, Give me just a couple more weeks and I'll start on a big update, I'm half way done with the exams =)
     
    LukeD1994 likes this.
  29. Offline

    LukeD1994

    Take as much time as you need =] You can't rush perfection =D
     
  30. Offline

    maxxen0961

    OMGZ OMGZ OMGZ!!!!!!!!!!!!!!!!!!!!!
    FINALY YOU DONT KNOW HOW LONG IVE WAITED FOR A PLUGIN LIKE THIS!, NOW JUST MAKE IT REDSTONE TRIGGABLE!
     
  31. Offline

    Sammy

    I think its already redstone triggable, isn't it ? it depends on what you want.

    So good news, I'm going to start coding v1.3 on friday friday friday ^^
     

Share This Page