Black Button

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

http://i.imgur.com/xWBVgol.png

---------------------------------------------------

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

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    74424
  • Created
    Feb 14, 2014
  • Last Released File
    Feb 22, 2014
  • Total Downloads
    1,230
  • License

Categories

Members

Recent Files