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
Any chance at an update?
What happened to v2?
Honestly I've had to redo buttons so many times with this plugin doing it again is like whetever, a working version out that is less likely to break with bukkit upgrades.
Version 2.0.0 Update
Just to keep you all updated I have now decided to basically rewrite the whole plugin from scratch as trying to hash in the new functionality I want, just wasn't working. The new system will use flatfile storage allowing easy offline configuration and a whole bunch of features. I am going to have to make sure that for the first few versions of v2 that there is the inbuilt code to handle upgrading and converting your v1 database to the new system without losing any configuration. Please be patient for this update and expect big things!
Doesn't seem to work with recommended build now..
no errors, the buttons just dont' work at all.. even though it was working fine with previous server build I was using.. /tcmds list shows same config button setup...
just no working buttons.
Apologies about taking so long. Had the wooden button patch ready to go. Have now made compatible with the latest versions of bukkit too.
an update would be great
I think it doesn't work correctly anymore. I wanted to create a pressure plate trigger, but I could not set a command for it.
HOW DOES IT WORK SO CONFUSED
ok so im doing /tcmds set $ply:/dt ctravel 4980 97 4994
and nothing works it just says imput error please try again
when ever I try like tcmds set %con/pex group Republican user add %ply it says the owner of that trigger isnt on? How do i fix this so they join the group?
Tomorrow came and went.
@obviousAce
Anything else other than wooden buttons, I will release a patch tomorrow.
@fungreenfox
Do you have any errors that appear in the log?
It still works fine with a new CB build, but you can't bind commands on triggers of newer Minecraft versions, like the wood button. And in the soon coming update there will be a new presure plate. An update of this plugin would be nice. Thanks :)
this plugin does not respond to anything, cmd input, any kind of text output , just nothing.
Using bukkit 1.4.5
If I set tcmds to jun a craftscript like this:
/tcmds set $ply:/scriptname.js 1 2 3
The variables 1, 2 and 3 are not passed in to the script as they are if I just run:
/scriptname.js 1 2 3
Is there any way to make this work?
Thank you for maintaining this plugin it's very useful.
Paul
@MattIsNotMyNameMC
Its okay. my fault for not updating the documentation. Will do that now.
nevermind
@hybridhazard
This has probably been the biggest problem since the plugin was made. Both me and Samuel had trouble getting something to work. With the $con: you can do most commands and that's probably the best way if it can be run by the console. If it cant be run by the console there is probably a reason like it needs a player location to be able to process. Will continue to look for a solution to this.
Is it possible to make it that $me:/somecommand work while the player is offline?