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
-
View User Profile
-
Send Message
Posted Aug 28, 2012@dimensionZ750
Gotcha... will look into it for version 2.0.0
-
View User Profile
-
Send Message
Posted Aug 28, 2012Step 1: create a trigger command Step 2: /tcmds reload a few times Step 3: the command is triggered as many times as you have reloaded the plugin.
Basicaly, it seems the db is not "wiped" when you reload, so it just adds up
-
View User Profile
-
Send Message
Posted Aug 28, 2012@dimensionZ750
Could you rephrase that? Not sure what your issue is? How do I reproduce?
-
View User Profile
-
Send Message
Posted Aug 28, 2012tcmds reload is not working correctly. If i reload 10 times, the command will be run 10 times.
-
View User Profile
-
Send Message
Posted Aug 24, 2012@ajster1989
Right worked out how I would do a batch import, probably 2.1.0 before that's added though.
-
View User Profile
-
Send Message
Posted Aug 24, 2012@ajster1989
When version 2.0.0 comes out its going to have an option for how many times a command can be executed before it self-unlinks. Batch file is a possible but probably not something I will have for 2.0.0 however there are new features like the add command which makes setting this up easier. Unfortunately, you have about a week or two until 2.0.0 comes out because there is a massive rewrite and redesign of a lot of the core code to clean it up and lots of new features.
-
View User Profile
-
Send Message
Posted Aug 23, 2012I will try, but I'm not great with PHP, if I could find a websend template that would maybe do it, but it would be better to allow the player to press a button for their prize
-
View User Profile
-
Send Message
Posted Aug 23, 2012@ajster1989
I'd suggest websend + a batch php script
-
View User Profile
-
Send Message
Posted Aug 23, 2012Could you add the feature to launch a batch from a file, like batch.yml.
Every new line of the file would be the next command... with settings to delete after being run, I want to do a reward for a contest on my server, this could be my solution.
-
View User Profile
-
Send Message
Posted Aug 20, 2012@Kolnan
This is quite an advance feature but has been requested already. I am looking into a way of implementing it in version 2. This is not currently available though. Watch this space.
-
View User Profile
-
Send Message
Posted Aug 20, 2012Sorry if this sounds noob but I'm interested in adding this for a possible award button/chest in mazes and such and I was wondering is it possible to limit the command... say they can only hit the button awarding X amount of economy money every X hours so basically a cool down for that specific command button that's created
-
View User Profile
-
Send Message
Posted Aug 19, 2012@HopXXII
Really... that's odd. I uploaded 1.4.1, 9 hours ago. Have you given that a go? definitely compiled for jre6 - I am certain I double checked.
-
View User Profile
-
Send Message
Posted Aug 19, 2012@flungo
Thanks but version 1.3.2-jre6 doesn't work too :( There is same error...
-
View User Profile
-
Send Message
Posted Aug 18, 2012@HopXXII
Will do, didn't have java 6 on my computer when compiling but do now. Want to add a few more features then put it up. Sorry for the inconvenience. The older version should work for now.
-
View User Profile
-
Send Message
Posted Aug 18, 2012Hello, when our server starts there is an error and tcmds doesn't work. Can you help us? Log here ;) Thanks
Edit: Sorry, is that only for Java 7 or it is compatible with 6? (i think we have ver. 6) If it's only for 7 can u make it for Java 6 too?
-
View User Profile
-
Send Message
Posted Aug 15, 2012@dimensionZ750
I have added the reload command. "/tcmds reload" Hope that helps. If it doesn't work let me know. Should do the trick as it will reload the database.
-
View User Profile
-
Send Message
Posted Aug 15, 2012@RyanTheAllmighty
Added the console commands to the next version which will be up shortly. Will look into the limitations idea.
-
View User Profile
-
Send Message
Posted Aug 15, 2012@MineSniper
Works with 1.3.1 so should have been working with 1.2.5.
Added the $con as well as a few other little features this evening. Should be up within an hour.
-
View User Profile
-
Send Message
Posted Aug 15, 2012@Belgaric
Added in the next version. Should be uploaded in the hour.
-
View User Profile
-
Send Message
Posted Aug 15, 2012@Ahmet094
Really late, but are you still having this problem because no one else had that problem. Any idea what you did to produce that problem?