ButtonCommands
ButtonCommands
- Version 1.9 -
- # Main Page
- Documentation
- Commands & Permissions Page
- Variables & Color Codes Page
- Config File Page
- White-List Config File Page
- Alias Config File Page
- Source code
Features
- Execute one or multiple commands after a button has been pressed.
- Execute normal commands.
- Execute console commands,using the console command sender.
- Execute redstone triggered commands.
- Execute alias commands, which lets you specify multiple normal or console commands to be ran.
- Command white-list. White-list all or only selected commands. Not for normal button commands.
- Variables. Get inserted before the command gets ran.
- A few somewhat useful commands.
Buttons in relevant positions to command-signs will execute the commands on the signs.
Long version (kind of important): Documentation
This plugin doesn't hook into NMS or CraftBukkit, only the Bukkit API, so it should work on most upcoming Bukkit versions. If there's no big red line somewhere in this description saying it's broken, it isn't yet.
FAQ
Q: Why don't redstone commands work?
A: You or your server is doing it wrong. These three ways work as long as you haven't touched any weird settings and don't use any weird plugins: Three ways of setting up redstone command signs
Q: Why don't something else work?
A: Please check the Known caveats on the latest file (files).
Hello! I been using your plugin since I began running a MC server about two months ago-and I just love it! However, I seem to have the same problem as Mayhem. I can not get the redstone feature to work :((
for the sign: line 1: i write nothing line 2: /redstone line 3: a command ex. /time day
It tells me the command sign was created, but I CAN NOT toggle it with redstone!!
@Mayhem777
I replied to your PM, but just in case:
The "/redstone" is supposed to be on the second line, and then the command after (possibly on the second and third line). The first line doesn't do anything. :) And the sign has to receive direct current for it to trigger.
Hi, i've a problem with the "Redstone Commands Sign"; i've tried a hundred of combinations but nothing works, i put a sign on a block with first line with a comment, second line with "/redstone" and third line with the command (commands that works by the normal way with the button but i need them to get activated via redstone and i can't) so i leave the sign and says "redstone sign created bla bla bla", but i power the sign, the block for all possible angles, and nothing happen :/ please tell me exactly how to setup the redstone sign, the lines 1 by 1 and possition of blocks etc, thanks!
@CharlesWCrete
Temp perms, and vault economy? Sure, why not.
You could add a way the people click, get the perm, do the command, take off money [optional using vault :) ] and revome the perm!
That would be cool!
@szoller
Yeah... I'll probably use a YAML :P But I don't have the time to do anything until at least next week :( Sorry.
Oh please, I would be very happy ;) A YAML-file is not easier?
I hope you can have a look! :)
@szoller
The sign can he hidden behind the block, but I am planning on maybe adding a database as an alternative when I got the time (which probably won't be anytime soon :( ).
Could you add a way to hide the sign?
1) So the command could be added via selecting the button and typing e.g. /addbutton /COMMAND ?
or 2) Selecting the button, typing /addbutton BUTTON_ID and put a sign somewhere else that contains BUTTON_ID and command
or 3) at least a way to put the sign e.g 3-4 blocks under the button
...so the sign can be hidden
@christoph1saal
Sure, I'll PM you the snapshot if I need a tester.
But keep in mind that I have school, and some other plugins I'm also working on.
@HON95
Really nice to hear! I found a great solution on a german Server called shana.sdod.ch. There are two kinds of Zones Server-created (Streets and things like that) an User-Zones the plugin protect chests, doors and fencegates. I think its great that user can create and even check the zones. And I can understand that WorldGuard thing :D
Write ma a PM if you need a tester :)
@christoph1saal
I am actually making a zone plugin. By making i mean made an unfinished plugin and then ignored it for quite a time... I might continue the development though.
BTW, (1) I like the way you just post a plugin request on this random plugin page ;) (2) No way I'm touching any WorldGuard API (if there even is one).
I would wish me a Zone Plugin. Here some ideas:
- easy creation of full hight zones - use selectable wand for selection - use a command to de/activate a zfind - use worldguard for zone protection
@xXReVurbXx
"/trade" ("/t") is fine for me. Don't get me wrong, I would never really use "/claim" :P
And thanks for the positive feedback and the suggestions :)
I only suggested /t or /take for the simplistic reason that /claim could not be /c,
since /c is for console. It would be nice to have a small one-letter alias, considering some commands could possibly be quite large.
Now because it's technically a trade, why not /trade or /t?
Description could go along the lines of "Trade in <#> <item(s)> to access/run this command".
Glad to be helping out! After seeing your plugin dwell around and update occasionally here on bukkit dev, I finally got around to testing it out. Functionality was and is amazing, and definitely makes performing commands for players much easier/interesting.
@xXReVurbXx
I like the way you think :) Thanks a lot for the ideas :D
One thing a will change though, instead of <material[:amount[:data]]> I will do just <material[:data]> [amount]. And the name for the command. "Claim" and "take" wouldn't be quite right, since they are paying or trading stuff for commands. I could add a timer to the command, so (s)he would have 5 - 10 seconds to "/take -c" to cancle the payment.
I understand your decision for veering away from any sort of economy system.
If you're thinking along the lines of a command such as /t or /take performed, where the command assigned afterwards would only be run if the user had an specified item (and amount), then that is a definite yes!
Here's food for thought:
/t or /take to start the command,
<item>:<amount> or if it requires a data value <item>:<metadata>:<amount>,
then type a command you wish to be used if the requisites are met.
That's my basic understanding of how one would perform such a task.
A problem with such item-taking buttons could be players not knowing what the button does, and pressing it. Avoidable with a sign specifically telling users what it does, or as an alternative you may wish to implement or not, have the user press the button a second time to confirm their usage of the button - configurable in the config. file.
@xXReVurbXx
Hmm, depends. There's no way I'm touching any economy system, but I could add a "claim" command or something, which would execute another command (both from the console, the first one being dispatched from a console cmd sign) if the player has the required amount of stuff. Yay or nay?
Would it be possible to charge cash or charge a configurable amount of items in your inventory to use a button?
My current case is that I wish for users to rank up by using collected items gained via plugins devoted to PvE and PvPing.
With these items, [hopefully] they will be able to press a button and spend them to purchase items, or rank up via command usage.
@XeonG8
You can put the command at the back of the block the button is on...
If Tiggercmds stays discontinued, I might implement a database into ButtonCommands, as an alternative to signs.