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).
@HON95
lol, I figured out what happened. I just forgot I set my attack with a button to do something similar to what I made the sign to do. It wasn't the same, but similar and I forgot about it.
@DrakenStark
Tried it. Nope.
I found an interesting glitch that will allow for people to use a command button without a sign. Put up a sign and place two buttons around it. Take apart the sign and one of the buttons, the remaining one will continue to work.
@sleepyprince
There are options for that both in the config and the alias config. If you want want all command buttons to forward the current, change
current.hasPerm
andcurrent.missingPerm
in the main config. If you want just some of them to forward the current, make aliases and change the relevant settings there.@DrakenStark
You're right. I forgot to insert the variables into alias commands. :P I'll release a fix when I get the time.
Is it possible to have the button pass-through after the sign command? I mean when the a sign is assigned to a button, the button currently cannot activate things like dispenser anymore.
It seems like Alias's won't use {N} to pick up their username. Maybe I'm doing something wrong? I'm looking to use the following:
youcanfly: commands: - xp {N} -25 - fly {N} enable: true current: missingPerm: true hasPerm: false permission: '' ignoreOtherPerms: true ignoreWhiteList: true
@Zroom28
Use aliases. If things are still unclear, just ask (again).
I added one line to all of the command types under "How to use" to hopefully make things a little bit clearer.
How do you make 1 button run multiple commands? I noticed that was in the plugin description, but can't figure out how to do it. any assistance would be great :D
@Talocitie97
Redstone commands are using the console command executor. If you want a player to run the command, you can probably use Essential's (if you have it insrtalled)
sudo
command. I probably won't add a function like that, but thanks for the suggestion though. :)@HON95
Alright, well on installation of the plugin command-signs reset its configuration. When both configs are set up, they seem to run fine together.
Also, with the Redstone Commands, what player runs the command? Or does it only work for console-enabled commands? It would be a great feature to be able to choose what player runs the command for normal commands and Redstone Commands.
Wow! Great plugin! Very useful in SO MANY WAYS!!!
@Talocitie
It didn't.
Can I ask why this plugin deleted all my 'Commandsigns' data from the Command-signs plugin and rendered it useless? I would like to use this plugin for its red-stone capabilities, in conjunction with Command-signs.
@jullegend
Long story short: No.
For the plugins which registered a permission with the command I could check, but most devs on here don't do that. If they (other plugins) check for the permission in their command execution code, there will be no way for me to check what permission the command might look for. Sorry :(
Can you make the buttons work for Players who normally do not have premission to use the
command?
Well done! I'm using it for my Server, and I love it
@LMGH
It should and does work perfectly with PEX, as long as PEX is set up correctly.
How my PEX YAMLs looked like when i tested it: BC PEX Test
@HON95
normal players cant use the buttons: You are not allowed to use command signs! But they have got the permissions use command signs: buttoncommands.use.normal, buttoncommands.* Hereis a list of my plugins
@LMGH
I tested it with PEX. It worked perfectly. So I won't be able to help you without further information.