ButtonPromote
ButtonPromote - Use buttons/pressureplates to give users various features!
Version: v3.1.0 (Updated by Furt) - 7/18/15
Sourcecode |
Issue Tracker |
FaQ |
Test Builds |
Join me on IRC @ irc.esper.net/5555 #buttonpromote
ButtonPromote allows the use of simple and easy-to-remember commands to make your buttons promote, message, give/take currency, give/take items, and/or warp the players who click them.
Features:
- Use buttons/pressureplates to promote players who press them
- Use buttons/pressureplates to send messages to players
- Use buttons/pressureplates to warp players to another location
- Use buttons/pressureplates to perform commands
- Use buttons/pressureplates to give/take items
- Use buttons/pressureplates to give/take currency
- Can set buttons/pressureplates to only be used once
- Multi-world compatibility
- Vault support for permissions and economy
Dependencies
Required:
- Vault
- Permission plugin - PermissionsEX recommended
Optional:
- Economy plugin
Commands:
- /bp - Shows commands in-game.
- /bp setpromotion <group> - Type this command, then press a button to make it promote users to specified group.
- /bp setmessage <message> - Type this command, then press a button to make it send your message to players. Colorcodes and spaces do work!
Uses: - "/bp setcommand tp %p furt-slap furt" This will tp the player clicking the button to furt then slap him
- "/bp setmessage Hello!-Welcome to the server!-Enjoy your stay!" This will output:
- Hello!
- Welcome to the server!
- Enjoy your stay!
- /bp setcommand <command> - Type this command, then press a button to make it perform a command on a player.
- /bp setwarp - Type this command at the location you want, then press a button to make it warp users to that location.
- /bp setpermission <permission.touse> - This is used to give custom permissions per button.
- /bp setitem <give/take> <itemname> <amount> - This is used to give/take items from a player that right clicks it.
- /bp setcurrency <give/take> <amount> - This is used to give/take currency from a player that right clicks it.
- /bp setusage <true/false> - This feature is for giving a button a one time use.
- /bp remove - Type this command, then press a button to remove promotions and warps.
- /bp confirm - Confirms button removal on block break.
- /bp cancel - Cancels all current selections.
Permissions:
- buttonpromote.use - Permission to use promoter and warper buttons.
- buttonpromote.create - Permission to use /bp set and /bp setwarp commands.
- buttonpromote.remove - Permission to use /bp remove command.
Configuration:
# Set this to true to make buttom promote add to permissions instead of replace keepOldGroups: false # Set this to true to make every button created one time use globalOneTimeUse: false # Set this to true to make buttons use console for commands instead of player consoleCommands: false # Warm up time for warp, in seconds warpTimer: 3
To-do / Upcoming Features:
- Give me your suggestions for more features!
Changelog:
v3.0.0
- Updated to 1.5.2
- Fixed config generation in some cases.
- Added all new buttons and pressure plates.
v2.2.2
- Added the ability to make commands use console instead of player in the config
v2.2.1
- Resolved most issues with /bp setitem take, this feature now cancels the button event if they do not have the required item or amount.
v2.2
- Added a config file for the following:
- globalOneTimeUse - Default: false - If set to true this will cause all buttons newly created to be set to true for one time use feature.
- keepOldGroups - Default: false - If set to true this will keep old groups a player has instead of removing them with a promotion button is used.
- New Features:
- ButtonPromote now supports pressureplates!
- You can now set multiple messages and commands
- /bp setcommand now has variables that can be used to mark player name or world name player name = %p and world name = %w
Features are looking great but it doesn't work with latest CB and Vault version?
Found a bug i think, im OP and still i don't have permission to use or create.
I'm using latest CB and bpermission.
And i got a error for you.
http://pastebin.com/DwWj9PX8
@ginner159
change the sql settings in the bukkit.yml file for the server
@Diabloste
I plan to make it easier to add lines for messages and commands
@telephonekiosk
/bp setpermission [node] is only for giving the button a custom permission
is there any way of allowing this to use mysql database instead of a flat file type?
Would it be possible to change the setmessage thing? It works perfectly, but I'm practically gonna write a wall of text, all of this text won't fit into the text chat. Also whenever I make the next line, and I need to have a "wall" as you can say being a
"--------------"
It makes it immense amount of lines.
I was hoping a bit more for the possibility to do this:
Diamond Block
---------------------
A block made of diamond.
Could you add /bp setpermission [node] that would, when someone presses it, give them the defined permission?
v2.2
Added a config file for the following:
New Features:
Uses:
Added source link at top next to version.
Thank for all suggestions guys, next release will try to cover all of current sugestions. Ill make a list after work and make another comment with all that will be added in next release.
Could you allow multiple messages through /bp setmessage?
Such as for example:
/bp setmessage Hi!
/bp setmessage Welcome to our server!
/bp setmessage Enjoy your stay!
and it would come out as:
Hi!
Welcome to our server!
Enjoy your stay!
source code?
@wumpyc
bump
I love this plugin, but it just won't let me use it :(( I get this error: http://pastie.org/4561995 Please please help me :(
@xclucky
Just to to spawn type /bp setwarp then go back and hit the buttton
does this work with levers?
My server doesn't start , it tells me an error in the console... I really want to use this plugin please help me !
Hi thank you for updating the ButtonPromote to 1.3.1. But now i had a issue i didn't have before. And the issue is that everytime someone presses a button it sets him only that group and deletes all his last ones. So i would really appreciate if you could make it that it just adds him into a group and keeps all his groups that he had before.. It worked this way on 1.2.5.
Does this give temporary permission for the duration of the event of pressing the button, or is it a permanent permission addition? I need players to be given a permission node for /spawn, however, not a permanent one.
Also, is there any chance that you will be adding the ability to run multiple commands in the future? It would be preferable if you added each extra command by running a separate command.
Example:
/bp setmessage Teleporting to Spawn
/bp setcommand /spawn
/bp addcommand /give %p fish 1
/bp removecommand /give %p fish 1
/bp addcommand /jobs employ %p Miner
Explanation:
/bp addcommand = adds another command to the button
/bp removecommand = removes a command that was added to the button
%p = Player pushing button variable
veribles? i wanna beable to make it issue a command with there name in it
Hi, i am using this on my server as a way for new players to promote themselves when they complete the spawn challenge, i had it working at first however now players click on the button and nothing happens? i am using permissions bukkit on bukkit 1.3.1 #2322 and the new players did have buttonpromote.use: true. now they have buttonpromote.use: true and buttonpromote.*: true however it still does nothing for me. the command buttons work fine for the players, for example the next button is a kit command and its fine. I am truly baffled by this, could you please help me out?
Just found a issue with the order of events that are triggered when a player clicks a button so untill next release do not set a button to sell items because currently it gives the player currency before it checks to see if they have the item to sell....