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
@fungreenfox Things i need:
The one thing ive noticed from that log is i dont see vault anywhere... Please tell me you have it.
@Furt
Server.log file:
2013-01-15 11:20:50 [INFO] This server is running CraftBukkit version git-Bukkit-1.4.6-R0.3-5-g82c58b5-b2589jnks (MC: 1.4.6) (Implementing API version 1.4.6-R0.4-SNAPSHOT) 2013-01-15 11:20:51 [INFO] DataSourcePool [ButtonPromote] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20] 2013-01-15 11:20:51 [INFO] DatabasePlatform name:ButtonPromote platform:mysql 2013-01-15 11:20:51 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader] 2013-01-15 11:20:51 [INFO] Registering Joda data types 2013-01-15 11:20:51 [SEVERE] Could not load 'plugins\ButtonPromote.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/joda/time/LocalDateTime at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.v1_4_6.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_4_6.CraftServer.<init>(CraftServer.java:217) at net.minecraft.server.v1_4_6.PlayerList.<init>(PlayerList.java:52) at net.minecraft.server.v1_4_6.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_4_6.DedicatedServer.init(DedicatedServer.java:104) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.NoClassDefFoundError: org/joda/time/LocalDateTime at com.avaje.ebeaninternal.server.type.DefaultTypeManager.initialiseJodaTypes(DefaultTypeManager.java:633) at com.avaje.ebeaninternal.server.type.DefaultTypeManager.<init>(DefaultTypeManager.java:165) at com.avaje.ebeaninternal.server.core.InternalConfiguration.<init>(InternalConfiguration.java:137) at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:209) at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:64) at com.avaje.ebean.EbeanServerFactory.create(EbeanServerFactory.java:78) at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:265) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:180) ... 9 more Caused by: java.lang.ClassNotFoundException: org.joda.time.LocalDateTime at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 17 more 2013-01-15 11:20:51 [INFO] [TuxTwoLib] Loading TuxTwoLib v1.4.6-b2
Your BP plugin is currently the only plugin for our need, we have found for our build at our server, we really appreciate this to be working.
@fungreenfox
What build number?
Is anyone else having this issue still?
Using an admin, nothing happens typing /bp or /help button etc. the plugin is not recoqnized at all. Plugin did not make a config file either. version 146 testbuild.
Hi,i just wanted to say,that i got it working now. only thing that's bothering me right now ,is that when using the button to promote to builder,everyone that has a higher rank,get's degraded.cheers
No player can use the buttons unless they are op. they all have - buttonpromote.use How do i fix this? :)
@Furt
my guess would be sqlite,since i never changed anything. might be a permission issue,i get back to you with a report,when i migrated the server to the new hardware.cheers
@tiwar
Are you using sqlite or mysql?
@Chaserobbo
same goes for me,nothing happens when i create a warp,and then try to use the button. using testbuild 3.0.0 and 1.4.6-r03 @Furt
Hi,is it possible to set several commands to a button? If so,how do i set it? regards Tiwar
Do you think you can make it so when you step on a pressure plate or push a button you could make it so theirs no message broadcasting to the player or could you make it so in the config you could enable or disable the messages
@BurkeDonnelly214
This will be in v3 release.
Suggestions:
Update ButtonPromote for:
Usage on Wooden Buttons Remove all ButtonPromote features when a button is destroyed.
@squ1by
I can remove the standard message if u want.
@jodizz57
use aliases in bukkit.yml
Please change the command name, conflicts with Bpermissions
Please add customizable messages for promotions and if possible, support for MyCommand (http://dev.bukkit.org/server-mods/mycommand/).
http://crimson-gaming.com:8080/job/ButtonPromote/
Things to do: Update :P
working for 1.4.6.! nice, but update please! :(