Sueta

Dice

1.0.2

A simple dice rolling plugin!

·Plugin

Dice
A simple dice rolling plugin!

Commands & Permissions

/roll [amount]

  • Permission: dice.use
  • Alias: /dice

Rolls the specified amount of dice or a configurable default amount if unspecified. The roll is displayed to all online players.

/diceplugin reload

  • Permission: dice.admin

Type this after making any changes to config.yml or messages.yml.

Configuration

config.yml

# ============================================= #
#              Dice Configuration               #
#              By: ChickenSaysBak               #
#                                               #
# To reload, use /diceplugin reload             #
#                                               #
# Permissions:                                  #
# - dice.use (to use /roll)                     #
# - dice.admin (to use /diceplugin)             #
# ============================================= #

# Set how long in seconds a player must wait before rolling again.
cooldown: 10

# The amount of dice rolled if no amount is specified.
default_amount: 2

# The maximum amount of dice that can be rolled at a time.
maximum: 100

# The minimum amount of dice that can be rolled at a time.
minimum: 1

messages.yml

# To stop sending a message entirely, delete the whole line including the key/prefix.

# Seen by anyone
roll: "&7%player% rolled &f%dice% &7(&f%total%&7)"
roll_usage: "&cUsage: /roll [amount]"
error_maximum: "&cThe amount cannot be greater than %maximum%!"
error_minimum: "&cThe amount cannot be less than %minimum%!"
error_cooldown: "&cYou must wait %remaining% second%s% to roll again!"

# Seen by admins
reload_config: "&aSuccessfully reloaded Dice!"
diceplugin_usage: "&cUsage: /diceplugin reload"

Similar projects

Plugin →