Black Button

---------------------------------------------------
I'm sorry, but I will no longer support this plugin.
Grab the code and go crazy.
If you want to work in this project, just ask me.
I'm sorry, but I will no longer support this plugin.
---------------------------------------------------
Based on a short film, Black Button lets an admin turns a simple button into a deadly lottery: When a player presses the button, he will receive a random prize, but someone, including the player, will die.
How to use
Just aim at the button and type "/bb add" to register the button as a Black Button.
Use the same logic with "/bb del".
Note: When you break the button or the block holding the button, its location is automatically removed from the list.
Latest version
Since it takes a while to Bukkit mods to approve the files, you can download it here:
http://henriquedeaguiar.com/project/BlackButton.jar
Config file
# Tip: To prevent abuse, let the PlayerDeathCooldown and # ActivationCoolDown with high values and PlayerDeathCooldown # set to at least the double of ActivationCooldown # minutes to wait until a Black Button can be pushed again (Default: 60) ActivationCoolDown: 60 # minutes to wait until a player can be killed again, except # for the player whom pressed the button (Default: 120) PlayerDeathCooldown: 120 # seconds to perform the action after the announcement (Default: 5) ActionResultTime: 5 # death occurrence percentage (Default: 100) DeathChance: 100 # minimum death occurrence percentage of the player # whom pressed a Black Button (Default: 5) PusherPlayerDeathChance: 5 # no message will be displayed (Default: false) SilentMode: false # cost to press the Button (Default: 0) # depends on Vault to use, but it's not required. CostToPress: 0 # Item list format: # ItemID[:DataID]-Quantity-EnchantmentID:EnchantmentLevel # EnchantmentID and EnchantmentLevel found in # http://minecraft.gamepedia.com/Enchanting#Enchantments # EnchantmentID = EID column Items: - 5:3-1 - 48-1 - 276-1-16:3
Commands (only OP)
- /bb add - Add the aimed button to the list
- /bb del - Remove the aimed button from the list
- /bb reload [true/false] - To reload the settings and reset timers. The optional true/false argument determines whether to save all locations to disk. Default value is true.
Permissions
No specific permission at this time. The player must be OP.
Future features:
- Enable command e config
- Drop items if player has full inventory
- Minimum players online
- Per world cooldown
- Per world death
- Permissions (nokill, admin)
- Every time the player pushes the button, it increases his chance of being killed (it saves to disk and resets when the player dies BY a Black Button)
- If the player is holding an item, it cannot be killed and then the button pusher dies
- Weighted item list
- Min e Max of prize items (random range)
- More acceptable blocks as button (lever, pressure plate)
- Translation/Custom messages
- Clear command (all/world_name)
- Mute Announcements
- Unbreakable button
- Money as prize
- Per player cooldown
- Drop random button
- Per button cooldown
More information:
I plan to make this plugin open source. I just need to figure out what license to use.
Also, English is not my first language, so please let me know of any errors in my writing.
Please leave me feedback. Thanks!
Note:
I only tested with Craftbukkit 1.6.4R2, but I think it will work fine with 1.7.
Changelog
Black Button 1.0.3
- BUG: Settings not reloading when /bb reload was invoked
Black Button 1.0.2
- Removed debug messages from console (only visible if Vault hook up failed)
Black Button 1.0.1
- Using "setHealth(0)" instead of "damage(1000)" to kill the player to prevent damaging the player armor.
- Silent Mode Option
- Enchantment items support
- Economy support (Vault) to charge the player
Black Button 1.0.0
- First Release
-
View User Profile
-
Send Message
Posted Aug 13, 2014@texashokies
Hey there! Sorry man, I don't have time to spare to work on this plugin anymore. I'm not even playing MC too. I'll post the source cod,e though. So anyone can carry on with the project. Sorry again.
-
View User Profile
-
Send Message
Posted Aug 11, 2014Hey just a request could you start work on a permissions system because my server im only using permissions and not oping any one. Thank you
-
View User Profile
-
Send Message
Posted Feb 19, 2014@euQsei @liadwolf Your features were implemented. Thanks for the input! It's gonna take a while until the files gets approved, but check the post for a link to the latest version.
-
View User Profile
-
Send Message
Posted Feb 19, 2014@euQsei Included in the todo list ;)
-
View User Profile
-
Send Message
Posted Feb 19, 2014please add cost
-
View User Profile
-
Send Message
Posted Feb 19, 2014@liadwolf
There is no option to make it silent right now, but it's a simple addition. I think I would be able to make it tonight.
About the enchantments, it's little more trouble. So, right now, I can only promise you that soon I'll include a way to do it.
Thanks!
-
View User Profile
-
Send Message
Posted Feb 19, 2014How can i set it slience? And enchantments?