promotional bannermobile promotional banner

CustomFortune

This plugin gives players a chance to have a console command run when they break certain blocks.

CustomFortune

This plugin gives players a chance to have a console command run when they break certain blocks.

Commands

This plugin does not contain any commands.

Permissions

Permissions are layed out as follows:

customfortune.1
customfortune.2
customfortune.3

and so on. The number following 'customfortune.' is the % chance that the player will get lucky and the command(s) will be run.

Config

Here is the default config:

fortune-blocks:
  - 'diamond_ore'
  - 'iron_ore'
  - 'coal_ore'
  - 'emerald_ore'
  - 'lapis_ore'
message: '&2&oThe odds are in your favor!'
commands-to-run:
  - 'say &c&lPlayer ''%p'' broke %b and got lucky! They get a prize!'
  - 'give %p diamond 64'

The fortune blocks section can be any length, with any material name in the game. Material names can be found here: http://jd.bukkit.org/rb/apidocs/org/bukkit/Material.html.

The string in 'message:' will be sent to the player if they break a fortune block and they end up succeeding to perform the command.

For the commands, use %p to substitute the player's name, and %b to substitute the name of the block they broke. For example, the default first command will tell all players on the server that someone got lucky and what block they broke.

Chat colors are supported in both commands (for sending messages and broadcasting) and the message that will be sent to the player that broke the block.

The CustomFortune Team

profile avatar
  • 15
    Projects
  • 23.7K
    Downloads

More from _ForgeUser9034439View all

  • ExplorationReward project image

    ExplorationReward

    • 1.1K
    • Bukkit Plugins

    This plugin runs a set of console commands when players discover new chunks.

    • 1.1K
    • October 19, 2017
    • Bukkit Plugins
  • Bob project image

    Bob

    • 440
    • Bukkit Plugins

    This plugin allows players to run commands as easily as sending a chat message.

    • 440
    • August 18, 2014
    • Bukkit Plugins
  • SilentMessage project image

    SilentMessage

    • 313
    • Bukkit Plugins

    This plugin allows players to send messages to each other with a very minimalistic layout.

    • 313
    • August 9, 2014
    • Bukkit Plugins
  • UniqueKills project image

    UniqueKills

    • 526
    • Bukkit Plugins

    This plugin causes console commands to be run when a player reaches a certain number of 'unique' kills.

    • 526
    • August 9, 2014
    • Bukkit Plugins
  • ExplorationReward project image

    ExplorationReward

    • 1.1K
    • Bukkit Plugins

    This plugin runs a set of console commands when players discover new chunks.

    • 1.1K
    • October 19, 2017
    • Bukkit Plugins
  • Bob project image

    Bob

    • 440
    • Bukkit Plugins

    This plugin allows players to run commands as easily as sending a chat message.

    • 440
    • August 18, 2014
    • Bukkit Plugins
  • SilentMessage project image

    SilentMessage

    • 313
    • Bukkit Plugins

    This plugin allows players to send messages to each other with a very minimalistic layout.

    • 313
    • August 9, 2014
    • Bukkit Plugins
  • UniqueKills project image

    UniqueKills

    • 526
    • Bukkit Plugins

    This plugin causes console commands to be run when a player reaches a certain number of 'unique' kills.

    • 526
    • August 9, 2014
    • Bukkit Plugins