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).
My question is, how I can make a user has permission to all commands that a sing of buttoncommands. example A normal user can not use / kit But if you can use it by pressing the button How I can make this work? thanks
@Tuidog
Well, if you're still wondering, the only way without a permissions plugin would be to change the default permissions.yml file in the server root directory by adding something like this to it:
Or you could create a new permission and add as many permissions you want as children permissions:
@Tuidog
Bottom line how can non-operators be able to use console commands without any permissions plugins?
I typed /c kit (kitname) {N} for my second line of the sign and just wrote (kitname) for the 1st. When anyone who isn't an OP clicks it it doesn't work. It gives me the message, "You are not allowed to use console command signs!" I want everyone to be able to use all signs and it's OK if they can create them because building is disabled, any advice? I haven't found anything in the config that lets normal people use console commands. Thanks for your help, -Tuidog
@daGrimdude
The sign has to be a wall sign. I'm not sure if repeaters targeting the sign will work, I haven't tested it.
@HON95
Hey sorry for the late reply,
What was wrong was I was using wooden buttons instead of the stone ones. It seems that the new wooden buttons weren't added in yet at that point.
One more series of questions, I can't quite get the redstone commands to work. Can you have a line of repeaters and then the sign? And what position do I place the sign in at the end of the redstone contraption?
Thanks!
@Volcano86
As far as I know, it's still functional. This, "ButtonCommands v1.9 for CB 1.3.2-R1.0", does not mean it stopped working with the following minecraft release, it just means that I released that version when that CB release was the latest. And thanks for calling it a great plugin. ;)
What about a 1.4 update for this great plugin ?
@notif
Not sure what you meant by the first sentence, but for the others: I made it use command signs because I didn't want to have it so that people would have to assign commands to the buttons, but rather create simple signs nearby with the command on it. But that just got messy and annoying, so for the 2.0 I'm changing it to assign commands to the buttons instead, without the use of command signs. And by command blocks I mean buttons, levers, pressure plates, etc.
Since buttons are not used that often, couldn't it simply monitor when a button is pressed, then if it's a command button, to run the command for that button? That would eliminate the need for signs or command blocks. And to assign a command to a button, look at it, and type something like /bc create <name> [/command], and then to add another command, type /bc add <name> </command2>
But your way works too, and recoding it might be trouble.
Probably because ButtonCommands 1.x have to look for the sign containing the command. ButtonCommands 2.0, though, can bind commands to different command blocks without the need of command signs.
This plugin takes up about 10x+ as much processing as ButtonWarps (Although still small in the grand scheme of things), and the only difference about it is that this one uses commands instead. Why is there more processing, exactly?
@Collinbxyz
Alias Commands @ Documentation
The upcoming BC 2.0 which I'm working on (on and off) is being rewritten from scratch, meaning that there will be a few changes, like having the option to not use command signs as they have their flaws.
And thanks for the support :)
@daGrimdude You have to do /c before. So it would be
/c pex user {N} group set Peasant
Oh, and make sure that in the perms file, Peasant spelled with a capital 'P'. Hope this helped.
I'm trying this plugin out, and I think it it great! I may be doing a tutorial video on it. We'll see. Thanks for making this HON95!
EDIT:
How do you have multiple signs/commands connected to a single button?
@Goahninator
Yup.
@daGrimdude
That's strange... Isn't it showing you any messages either directly or in the console? Are you using some other plugin to prevent player interactions or similar? Where did you place the sign and in which direction?
Can I put any command from any plugin as a button?
Hello,
I have a quick question that I hope you could help me with. On my server I have a course that all new players must pass involving the server rules. At the end there is a commandbutton that would promote them to the Peasant class. I am using the PermissionsEx plugin for the groups.
How would I go about making this promotion mechanism? I have a button and then a sign with the command: /pex user {N} group set Peasant
Problem is nothing happens when I press the button. I have given the Default class permissions to use alias, normal and console commandbuttons.
Thanks
@Hawwestin
You could write "/c " and then the command for your permissions plugin. The command probably needs the name of the player, so you can use the variable "{N}".
Hey. And as with giving permissions using aliases? For example, can give someone the right to use the Portal if I have included perwarp permissions?