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).
@j6ny
Redstone Commands
@SalemAlmarri
What isn't working? "Command"-buttons? The only reason they shouldn't do anything is if you don't have the correct permissions (which it should tell you), if some other plugin is canceling the PlayerInteractEvent, or if you failed to install the plugin.
And BTW, cool. :)
Update: I figured it out. It needed to be a wall sign. Didn't realize that was required.
It's seems that with the latest 2 versions, redstone signs don't work at all for me. I've tried both /r and /redstone and nothing happens no matter how hard I try. The console says "blah blah has created a redstone sign" but when I power it, nothing happens.
Could you plz make it that it could be powered by redstone and not just a button? that would be cool.
@HON95
It is not working, and by the way I am AlMarri2008 ,
@gabesarch
Like a cooldown? That doesn't sound like too much trouble.
You should put a limit on how many times they can push the button
@HON95
Thankyou, I just wanted to do:
/permissions player setperm {N} permission.node true
@SalemAlmarri
Java 1.6. Why, what isn't working?
@Adzwoolly
Yes, using the variable {N}. It will be replaced with the players name.
A better way of giving permissions? Not entirely sure what you mean.
@zyxep
Thanks for reporting it. Error found and taken care of.
I'll upload the update ASAP.
@IdealIdeas
I might implement some kind of DB, but personally I'd prefer to keep it as it is.
It's on my "Things I might do, but probably not" todo list.
I am sorry, but which version of Java needed? Because it is not working for me.
Is there a way to use a player's name who clicked it.
Or is there a better way to give permissions
i get this error/message on 1.6
I like this but sadly it might not work completely for what I want.
Have you seen the plugin server signs? How that one works is you type the command you want to be ran, and then select a sign to bind it to.
Is there anyway in the future you could make it run in a similar fashion where we can link the commands directly to the button instead of on signs?
@iliketrains26
The off-center thing happens when the color is added... Not sure why. And thanks. :)
This is an awesome plugin for servers. I hope you keep up the good work and keep on updating! The only downside is that when you type in the title its not centered. Maybe you can make it centered? That would be a big help!
I'd love to see economy support, through vault of course. I see it's on your "but probably not" to-do list but I'm still going to say this anyway.
It would be cool if you could make buttons run console commands and all the rest, but when they click it a set amount of money is taken from them. I was thinking I could do it with a command that takes money from you but then realised it wouldn't work as the command doesn't check if you have the required amount of money. So if you could do this it would be great.
Thanks :D