TriggerCmds
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
Features
- Simple way to link cmds to triggers
- Works (in theory) with almost any command
- Uses persistence to save all the triggers
- Has permissions ("triggercmds")
- Batch triggers where several commands can be executed in succession.
Tutorial
Make a trigger
- /tcmds edit TriggerName - Opens/creates the trigger edit
- /tcmds set $me:/tp $ply $me - Makes you teleport the player that presses the button to you
- Left Click on the switch - Regs the switch and closes the edit
Make a batch trigger
There are now two ways to create batch triggers. All in one go or one command at a time.
All in one go
- /tcmds edit TriggerName - Opens/creates the trigger edit
- /tcmds set $ply:/spawn & $me:/time day - Makes the player that presses the button teleport to the spawn AND change the time. The spaces around the & are important here. You can list as many commands as you can fit.
- Left Click on the switch - Regs the switch and closes the edit
One command at a time
- /tcmds edit TriggerName - Opens/creates the trigger edit
- /tcmds set $ply:/spawn - Makes the player that presses the button teleport to the spawn
- /tcmds add $me:/time day - Change the time after making the player teleport.
- Left Click on the switch - Regs the switch and closes the edit
Delete a trigger
- /tcmds edit TriggerName - Opens/creates the trigger edit
- /tcmds del - Deletes the trigger from the db
Delete a Link
- /tcmds edit TriggerName - Opens/creates the trigger edit
- Right Click on the switch - Deletes the switch and closes the edit
Executors
- $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
- $con: - The cmd will be executed by the console
Variables
- $me & $ply - Used inside the command you want to declare
Updating this right now. Hopefully I haven't forgotten too much Java in my time away!
Hi, Would it be possible to add a command to reload the active plates from the database without having to restart the server ? I have scripts that add plates to the database manually (works perfectly) but the plates arent active (I guess you load on start up).
Okay guys, take on board all your commend and love the command sender idea. Will try and start work this weekend. Just finished my exams and had a house move this weekend so all a bit hectic. Thanks to everyone who has downloaded this so far.
I also love to see the option to run console commands. so i can create a command to console to promote a player rank even if he has no prvilileg to that command
Love the plugin, but just doesnt have everything I need.
Would love to see being able to execute console commands as well as commands as other players. Also would love to see a cooldown timer so the buttons can only be pressed once every x seconds either globally or per user
Would be nice to get a reload cmd, so no restart of the server is needed if you edit the cmds via sql.
Hey,
could you pls update your plugin? it says that it can't pass the playerinteractevent to triggercommands would be nice if you could throw out a quick update, cause i really need a leightweight plugin like yours ;)
thanks
@flungo
Wow, this plugin is amazing for so many different things.. I love you for keeping it up to date.
@XeonG8
Phew. :) Was going to say I cant see how 1.2.4 could have caused that again!
ignore that.. old error :D
@nicquehen
Just checked and it does for me? Could you provide some more details of your issue?
Don't work in 1.2.4.
I hope for an update soon :)
@XeonG8
Glad its finally working for you! Apologies for the delay.
Awesome now works with Java6 compile... finally, buttons back and batch commands, just what I wanted :D
@XeonG8
Hi, can you do "java -version" in your command line? A seperate one from the one running MC though.
Still getting this with 1.3.2 :(
@agentpaco
Just did some extensive testing. it seems that if you are getting permission errors when people click the button it is literally because they don't have the permissions to execute the command you have set.
You may want to try changing the runner to $me:
If you are still having trouble let me know.
@XeonG8
Just waiting for my latest upload to be approved. Hope you like - it has the awesome new feature of batch commands too. Enjoy!
@flungo Can't wait, hopefully soon.