




Mystery Mob Spawner is a highly customizable plugin that offers a new feature to your server. It makes a great addition to your server's store as well as rewards in-game. Right-click with the Mystery Spawner to receive a random spawner type. The types can be changed in the config as well as a supported chance per spawner type.
please send me PM if you have any ideas or found errors.


↪ Simple Setup: Simply drop MysteryMobSpawner into your Plugins folder, and make sure to install Vault & SilkSpawners! MysteryMobSpawner is also compatible with all versions of Spigot.
↪ Efficient: MysteryMobSpawner has been optimized to prevent unnecessary stress to your server. It won't affect your server's performance in any way.
↪ Customizable: MysteryMobSpawner allows as much customization as we possibly can allow.
↪ Chance System: MysteryMobSpawner has a built-in chance system for each reward/spawner the user will receive.


↪ Commands:
/mms - Main command.
/mms reload - Reload configuration files.
/mms give - Gives the player specified a Mystery Mob Spawner
/mms giveall - Gives all the online players a Mystery Mob Spawner
/mms buy - Allows a player to purchase a Mystery Mob Spawner
↪ Permissions:
mms.help - Allows the player to execute /mms help
mms.reload - Allows the player to execute /mms reload
mms.buy - Allows the player to execute /mms buy <amount>
mms.give - Allows the player to execute /mms give <amount> <player>
mms.giveall - Allows the player to execute /mms giveall <amount>
mms.* - Allows the player to execute all the commands in this plugin

Code:
#######################################################################################################
# __ __ _ __ __ _ _____ #
# | \/ | | | | \/ | | | / ____| #
# | \ / |_ _ ___| |_ ___ _ __ _ _| \ / | ___ | |__| (___ _ __ __ ___ ___ __ ___ _ __ #
# | |\/| | | | / __| __/ _ \ '__| | | | |\/| |/ _ \| '_ \\___ \| '_ \ / _` \ \ /\ / / '_ \ / _ \ '__| #
# | | | | |_| \__ \ || __/ | | |_| | | | | (_) | |_) |___) | |_) | (_| |\ V V /| | | | __/ | #
# |_| |_|\__, |___/\__\___|_| \__, |_| |_|\___/|_.__/_____/| .__/ \__,_| \_/\_/ |_| |_|\___|_| #
# __/ | __/ | | | #
# |___/ |___/ |_| by RyujiX(ryu) #
#######################################################################################################
settings:
item-creator:
# Configure this how ever you see fit for the MysteryMobSpawner item
# different settings:
# | id - this is the value of the item type.
# | name - this is the name value of the item.
# | lore - this is the lore value of the item.
mms-item:
id: 52
name: '&6&lMystery Mob Spawner'
lore:
- '&7Right-click in hand to reveal one'
- '&7of the following mob spawner types:'
- ' '
- '&6&l* &7Enderman'
- '&6&l* &7Pigzombie'
- '&6&l* &7Cow'
- '&6&l* &7Creeper'
- '&6&l* &7Blaze'
- '&6&l* &7Iron Golem'
- '&6&l* &eMooshroom Cow'
- '&6&l* &eMagma Cube'
- '&6&l* &eGhast'
mms-reward-system:
# Enable this to be able to use chances in the reward system instead of
# going of off odds, for example if this was disabled and you had 9 rewards the chances would be 1/9.
chance-system: true
rewards:
# Configure this how ever you'd like but make sure that you set it up correctly otherwise it won't work!
# example-reward:
# 'MOB_TYPE':
# chance: 20.0 (chances of getting this spawner, if the chance system is enabled above.)
# broadcast-message: (this option is optional only add this setting in if you want to broadcast a message to the whole server.)
'ENDERMAN':
chance: 20.0
'PIG_ZOMBIE':
chance: 20.0
'COW':
chance: 20.0
'CREEPER':
chance: 20.0
'BLAZE':
chance: 20.0
'IRON_GOLEM':
chance: 20.0
'MUSHROOM_COW':
broadcast-message:
- '&e&l(&6&l*&e&l) &6&n{player}&e has just received a &6&l{type} Spawner &efrom a Mystery Mob Spawner!'
'MAGMA_CUBE':
chance: 5
broadcast-message:
- '&e&l(&6&l*&e&l) &6&n{player}&e has just received a &6&l{type} Spawner &efrom a Mystery Mob Spawner!'
'GHAST':
chance: 2.5
broadcast-message:
- '&e&l(&6&l*&e&l) &6&n{player}&e has just received a &6&l{type} Spawner &efrom a Mystery Mob Spawner!'
mms-shop-system:
# Enable this setting to be able to enable the MysteryMobSpawner shop system.
# Vault will be needed for this feature to work! https://dev.bukkit.org/projects/vault
use-economy: true
# Enable this setting to use the default mms-cost below, keep in mind the default cost will only appear if
# you leave the cost line blank on the sign, but if you enable the allow-buy-command it'll automatically use
# the mms-cost for that command to buy a MysterMobSpawner.
use-default-cost: false
# This is the value of the cost for both mms-sign cost & allow-buy-command, or just for the allow-buy-command
# if use-default-cost is disabled.
mms-cost: 5000000
# Enable this to allow users to buy MysteryMobSpawners via command in-game.
allow-buy-command: true
# Configure this however you see fit, this is the style of the MysteryMobSpawner sign when you create it in-game.
mms-sign:
- '&4[Buy]'
- '{amount}'
- 'MysterySpawner'
- '${price}'
Code:
messages:
MMS-Help:
- '&8&l&m----------&r&8&l[ &6Mystery Mob Spawners &8&l]&m----------'
- ' '
- '&b/mms give [player] (amount) &f- &7Gives the player that amount of Mystery Spawners.'
- '&b/mms giveall (amount) &f- &7Gives everyone online that amount of Mystery Spawners.'
- '&b/mms buy (amount) &f- &7Allows you to buy the specified amount of Mystery Spawners.'
- '&b/mms reload &f- &7Reloads the YML files.'
- ' '
- '&8&l&m----------&r&8&l[ &6Mystery Mob Spawners &8&l]&m----------'
MMS-Redeem:
- '&e&l(&6&l*&e&l) &eYou received a&6 {reward} Spawner &efrom a &6Mystery Mob Spawner&e.'
MMS-Inventory-Full:
- '&cSorry, it doesn''t seem like you have enough inventory space.'
MMS-Inventory-Full-Drop-Item:
- '&cIt seems like your inventory was full, but we dropped the item next to your feet!'
MMS-Bought:
- '&c&l- ${price}'
- '&e&l(&6&l*&e&l) &eYou purchased a &6Mystery Mob Spawner&e.'
MMS-Insufficient-Funds:
- '&cYou don''t seem to have a sufficient funds to buy this item. You need another &n${needed}&c.'
MMS-No-Permission:
- '&c&l(!) &cSorry, but it doesn''t seem like you have permission to this command.'
MMS-Reload:
- '&a&lReloaded &aMysteryMobSpawner.'
MMS-Buy-Help:
- '&e&l* &eUnknown Command: &6try "/mms buy (amount)"'
MMS-Buy-Disabled:
- '&cSorry, it seems like this feature is currently disabled.'
MMS-Invalid-Number:
- '&cThe number &n{amount}&c have enter is invalid.'
MMS-Give-All-Help:
- '&e&l* &eUnknown Command: &6try "/mms giveall (amount)"'
MMS-Give-All-Sender:
- '&e&l(&6&l*&e&l) &eYou gave a &6Mystery Mob Spawner&e to everyone on the server!'
MMS-Give-All-Receiver:
- '&e&l(&6&l*&e&l) &eYou received a &6Mystery Mob Spawner&e from {sender}.'
MMS-Give-Help:
- '&e&l* &eUnknown Command: &6try "/mms give [player] (amount)"'
MMS-Give-Sender:
- '&e&l(&6&l*&e&l) &eYou gave a &6Mystery Mob Spawner&e to &6{player}&e.'
MMS-Give-Receiver:
- '&e&l(&6&l*&e&l) &eYou received a &6Mystery Mob Spawner&e from {sender}.'
MMS-Give-Offline:
- '&cThe player {player} couldn''t be found.'