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
@Furt
Please help, when i try to create a promotion and currency it says the right click to create thing and then i right click on the button and it doesn't do anything. The console doesn't have any error messages either.
Thanks,
---------------------------Server IP: swag-factions.servegame.comcan anyone confirm its fixed?
@mafima
Newest test build should fix that.
with this build all my players are teleported to a location when 1 player uses the teleportation function!
no admin did "/tpall"
@mafima
@wolfenguard
Test build is ready check it out and let me know if this fixes the error http://crimson-gaming.com:8080/job/ButtonPromote/10/
Currently converting the source to use maven, i have a jenkins server running now so ill be able to get releases out the door faster. Ill post the link when its ready.
getting the same errors as mafima.. using bukkit 1.4.5 02
i have massive laggs with spigot.
error:
11:07:08 [WARNING] Could not properly handle event PLAYER_CHANGED_WORLD:
java.lang.IllegalAccessError: Synchronized code got accessed from another thread: java.util.TimerThread
at org.bukkit.event.NLTCListener.onPlayerChangedWorld(NLTCListener:0)
at sun.reflect.GeneratedMethodAccessor266.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.ServerConfigurationManagerAbstract.moveToWorld(ServerConfigurationManagerAbstract.java:408)
at org.bukkit.craftbukkit.entity.CraftPlayer.teleport(CraftPlayer.java:392)
at org.bukkit.craftbukkit.entity.CraftEntity.teleport(CraftEntity.java:175)
at me.iMint.ButtonPromote.ButtonTimer.run(ButtonTimer.java:24)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
11:07:08 [INFO] This error is logged only once: it could have occurred multiple times by now.
11:07:08 [INFO] Potential failures may occur in other plugins handling this Event.
11:07:08 [INFO] Please contact one of the authors of plugin 'ButtonPromote': furt, _InnoKo_
2012-12-08 10:52:04 [WARNING] Could not properly handle event CHUNK_LOAD:
java.lang.IllegalAccessError: Synchronized code got accessed from another thread: java.util.TimerThread
at org.bukkit.event.NLTCListener.onChunkLoad(NLTCListener:0)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:123)
at net.timedminecraft.server.TimedChunkProviderServer.getChunkAt(TimedChunkProviderServer.java:126)
at net.minecraft.server.PlayerInstance.<init>(PlayerInstance.java:22)
at net.minecraft.server.PlayerManager.a(PlayerManager.java:68)
at net.minecraft.server.PlayerManager.addPlayer(PlayerManager.java:103)
at net.minecraft.server.ServerConfigurationManagerAbstract.moveToWorld(ServerConfigurationManagerAbstract.java:389)
at org.bukkit.craftbukkit.entity.CraftPlayer.teleport(CraftPlayer.java:392)
at org.bukkit.craftbukkit.entity.CraftEntity.teleport(CraftEntity.java:175)
at me.iMint.ButtonPromote.ButtonTimer.run(ButtonTimer.java:24)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
2012-12-08 10:52:04 [INFO] This error is logged only once: it could have occurred multiple times by now.
2012-12-08 10:52:04 [INFO] Potential failures may occur in other plugins handling this Event.
2012-12-08 10:52:04 [INFO] Please contact one of the authors of plugin 'ButtonPromote': furt, _InnoKo_
@Yoyuyi999
So what your wanting is the ability to control the redstone power event when the button was press?
Can you include this in for the plugin? Can u make it so when you press a button it takes away an item or an amount of money to open a door? And if you do not have enough money or the item then that door will not open? Probably with a message saying, "You do not have enough [money] or [item] to open this door!" And if you can, can you do the same thing but with commands, too?
best promotion plugin ever. other plugins dont have the "group overwirte" option as this plugin has. and i need this so bad for my server!
working on craftbukkit beta 1.4.5. r0.2 by the way
works with 1.4.2 too, trying out 1.4.5 later
confirmed,works very well with 1.4.5 and thank you for this plugin Furt regards tiwar
@fungreenfox
65% of the current servers that are using this plugin "300 servers total" are running latest version on 1.4.5. So please tell me what is the problem?
Your plugin is for 1.3.2 and this doesnt work at all. We are at 1.4.5, do you plan making an update?
@Furt
i'm not too sure if i'm totally honest, still new to the idea of a server being hosted for me, well the technical side of things anyway
and that's fine :) i wanted to have so it was console commands for all of them, the only problem i had was that there was no consoleCommands in my config until i had realised i simply only replaced the jar and didn't remove the config so a new one load up, now it has it and everything is good :D great plugin, absolutely love it man, keep up the good work :D
@Danstryder
I think someone else has had issues with removing buttons, what do you use for data storage? sqlite or mysql because with sqlite the command is working fine.
As for console commands, there is no way to toggle it per button, the only way to currently do it is to change the config: consoleCommands: false, to true but keep in mind all buttons that have commands will use console.
@iGrisen
Update what? These kind of comments serve no purpose.
please update...
Hi dear BP-Team, I've got some questions. Ur plugin works great, but i wanna set up buttons with setcurrency for some hungergames events, i just dont know how i can set up these buttons to give these currency just 1 time in lets say... 10 hours, cuz now when i setup it you can still spamm press it to get unlimed currency, how can i fix that? Thx. a PM would be nice since i could oversee your post.