The #1 Mobcoins Plugin on the Market!
Super Mobcoins is a custom currency & shop designed to make users grind to earn stuff like ranks, keys & much more!
- Fully configurable
- 1.8-1.21.x Support
- MySQL Support
- Unlimited rewards
- Updating reward shop
- Changeable drop rates
- Sounds
- Easy to use API
- PlaceholderAPI & HolographicDisplays Placeholders
- WildStacker Support (specifically v3 Pre-4, unsure about other versions)
SuperMobCoins is a very simple concept that is easy to understand for all. When a player kills a mob, for example an enderman, there is an 8% (configurable) chance for the player to obtain a "MobCoin". With these mobcoins players can spend them in our "/mobcoins" shop and purchase any item that you set in the "rewards.yml" config!
This is an example of the HolographicDisplays placeholders being used
The plugin does not feature too many commands, these are the current commands featured in this plugin.
Code:
Default Stuff:
Command: /mobcoins
Permission: mobcoins.use
Command: /mobcoins viewcoins <player>
Permission: mobcoins.viewcoins
Command: /mobcoins pay <player> <amount>
Permission: mobcoins.pay
Command: /mobcoins withdraw <amount>
Permission: mobcoins.withdraw
Admin Stuff:
Command: /mobcoins give <player> <amount>
Permission: mobcoins.give
Command: /mobcoins set <player> <amount>
Permission: mobcoins.set
Command: /mobcoins take <player> <amount>
Permission: mobcoins.take
Command: /mobcoins giveitem <player> <amount>
Permission: mobcoins.giveitem
Command: /mobcoins refresh <category>
Permission: mobcoins.refresh
Command: /mobcoins reload
Permission: mobcoins.reload
Command: /mobcoins migrate (this migrates your YAML profiles to MySQL)
Permission: mobcoins.migrate
Regular Installation:
1 - Purchase & Download the plugin!
2 - Place SuperMobCoins.jar into your servers plugins folder
3 - Restart your server
4 - Edit config and rewards.yml etc. to your liking
5 - Either restart the server or reload the plugin
Code:
mysql:
enabled: false
host: "localhost"
port: 3306
database: "test"
user: "root"
password: ""
gui:
title: "&8&lMOB COINS"
rows: 4
decoration:
mobcoins_item:
material: "WATCH"
name: "&b&lMOB COIN ITEMS"
lore:
- ""
- "&2&l* &aTime Remaining&f: &7%normaltime%"
- ""
- "&7&o(( These items will automatically update to new items... ))"
durability: 0
glow: false
slot: 5
special_mobcoins_item:
material: "WATCH"
name: "&3&lSPECIAL MOB COIN ITEMS"
lore:
- ""
- "&2&l* &aTime Remaining&f: &7%specialtime%"
- ""
- "&7&o(( These items will automatically update to new items... ))"
durability: 0
glow: false
slot: 2
amount_item:
material: "DOUBLE_PLANT"
name: "&3You currently have &b%coins% &3mobcoins"
lore: []
durability: 0
glow: false
slot: 27
info_item:
material: "BOOK"
name: " "
lore:
- "&7&m-------------------------------------"
- "&bMob Coins &7can be earned by killing &c&lHOSTILE &7mobs."
- "&bMob Coins &7will allow you to buy items from the shop menu"
- "&7Use &b/Mobcoins Help&7 for more!"
- " "
- "&3&lMobs that drop coins:"
- "&bZombies, &bSkeletons and &bBlazes &7&o(5% chance)"
- "&bCreepers and Endermans &7&o(8% chance)"
- "&7&m-------------------------------------"
- " "
durability: 0
glow: false
slot: 35
filler:
enabled: true
item:
material: "STAINED_GLASS_PANE"
name: " "
durability: 15
glow: false
gui_open:
sound:
enabled: true
type: "ENDERDRAGON_HIT"
mobcoin_item:
material: "DOUBLE_PLANT"
name: "&b&lMob Coin &7(Rightclick to redeem)"
lore:
- "&3You can use these coins in &b/mobcoins"
- "&3to purchase stuff"
format:
enabled: false
locale: "US"
mobcoin_normal_shop_update_hours: 24
mobcoin_special_shop_update_hours: 72
mobcoins_only_from_naturally_spawned_mods: false
received_mobcoin_from_mob_message_sent: true
close_gui_on_buy: true
stacking_support: false
disabled_worlds:
- "disabledworld"
NO_PERMISSION_MESSAGE: "&cYou do not have permission to execute this command"
USAGE_MESSAGE: "&cUsage: %usage%"
PLAYER_NOT_FOUND_MESSAGE: "&cCannot find the player %player%"
PROFILE_NOT_FOUND_MESSAGE: "&cCannot find the profile %profile%"
NOT_NUMERIC_MESSAGE: "&c%arg% should only contain numbers"
GAVE_MOBCOINS_MESSAGE: "&eYou gave &6%amount% &emobcoins to &6%player%"
RECEIVED_MOBCOINS_MESSAGE: "&eYou received &6%amount% &emobcoins from &6%sender%"
GAVE_MOBCOIN_ITEMS_MESSAGE: "&eYou gave &6%amount% &emobcoin items to &6%player%"
RECEIVED_MOBCOIN_ITEMS_MESSAGE: "&eYou received &6%amount% &emobcoin items from &6%sender%"
NOT_PLAYER_MESSAGE: "&cYou need to be a player to execute this command"
AMOUNT_CANT_BE_ZERO_MESSAGE: "&cThe withdrawal amount cannot be 0"
NOT_ENOUGH_MOBCOINS_MESSAGE: "&cYou do not have enough mobcoins to do that"
WITHDREW_MOBCOINS_MESSAGE: "&eYou withdrew &6%amount% &emobcoins"
BOUGHT_REWARD_MESSAGE: "&eYou bought %reward% &efor &6%amount% &emobcoins"
RECEIVED_MOBCOIN_FROM_MOB_MESSAGE: "&a&l+ %amount%⛁ Mobcoin &7(Mob)"
REDEEMED_MOBCOIN_MESSAGE: "&eYou redeemed &6%amount% &emobcoins"
MOBCOIN_NORMAL_SHOP_UPDATED_MESSAGE: "&e(&6&l!&e) The normal mobcoin items in &6/mobcoins &ehas been updated"
MOBCOIN_SPECIAL_SHOP_UPDATED_MESSAGE: "&e(&6&l!&e) The special mobcoin items in &6/mobcoins &ehas been updated"
MOBCOINS_OF_PLAYER_MESSAGE: "&6%player% &ehas &6%amount% &emobcoins"
PLAYER_NOT_ENOUGH_MOBCOINS: "&c%player% does not have %amount% mobcoins"
TOOK_MOBCOINS_MESSAGE: "&eYou took &6%amount% &emobcoins from &6%player%"
PLAYER_TOOK_MOBCOINS_MESSAGE: "&6%player% &etook &6%amount% &emobcoins from your balance"
SET_MOBCOINS_MESSAGE: "&6%player%&e's mobcoins balance has been set to &6%amount%"
YOUR_MOBCOINS_SET_MESSAGE: "&eYour mobcoins balance has been set to &6%amount% &eby &6%player%"
INVENTORY_FULL_MESSAGE: "&cYour inventory is full"
INVENTORY_GOT_FILLED_MESSAGE: "&eYour inventory got filled so you could only withdraw &6%amount% &emobcoins"
AMOUNT_INPUT_TOO_LONG: "&cThat amount input is too long"
CANNOT_PAY_YOURSELF_MESSAGE: "&cYou cannot pay yourself"
MOBCOINS_HELP_LORE:
- '&8&m---------------------------'
- '&3&l(!) Mobcoins Commands:'
- '&b/mobcoins withdraw <amount>'
- '&b/mobcoins pay <player> <amount>'
- '&b/mobcoins viewcoins <player>'
- '&8&m---------------------------'
MOBCOINS_HELP_ADMIN_LORE:
- '&8&m---------------------------'
- '&3&l(!) Mobcoins Commands:'
- '&b/mobcoins withdraw <amount>'
- '&b/mobcoins pay <player> <amount>'
- '&b/mobcoins viewcoins <player>'
- ''
- '&3&l(!) Admin Commands:'
- '&b/mobcoins give <player> <amount> [-s]'
- '&b/mobcoins take <player> <amount>'
- '&b/mobcoins set <player> <amount>'
- '&b/mobcoins giveitem <player> <amount>'
- '&b/mobcoins refresh <category>'
- '&b/mobcoins reload'
- '&8&m---------------------------'
Code:
#Normal
#13
Crate:
name: "&e&lCrate &6&l| &fBasic"
commands:
- "crate givekey %name% basic 1"
price: 50
material: "TRIPWIRE_HOOK"
amount: 1
lore:
- " "
- "&3&l* &b&lPRICE: &7%price%⛁"
- " "
- "&e[!] &7Use at &e/Warp Crates"
durability: 0
glow: false
special: false
slot: 13
Crate2:
name: "&e&lCrate &6&l| &fOther"
commands:
- "crate givekey %name% basic 1"
price: 50
material: "TRIPWIRE_HOOK"
amount: 1
lore:
- " "
- "&3&l* &b&lPRICE: &7%price%⛁"
- " "
- "&e[!] &7Use at &e/Warp Crates"
durability: 0
glow: false
special: false
slot: 13
#14
Diamond:
name: "&b&l64x Diamond Blocks"
commands:
- "give %name% diamond_block 64"
price: 100
material: "DIAMOND_BLOCK"
amount: 1
lore:
- " "
- "&3&l* &b&lPRICE: &7%price%⛁"
durability: 0
glow: false
special: false
slot: 14
#15
Emerald:
name: "&a&l64x Emerald Blocks"
commands:
- "give %name% emerald_block 64"
price: 150
material: "EMERALD_BLOCK"
amount: 1
lore:
- " "
- "&3&l* &b&lPRICE: &7%price%⛁"
durability: 0
glow: false
special: false
slot: 15
#22
Tag:
name: '&f&l"&a&lBuyMe&f&l" &7Tag'
commands:
- "tag give %name%"
price: 5
material: "NAME_TAG"
amount: 1
lore:
- " "
- "&3&l* &b&lPRICE: &7%price%⛁"
durability: 0
glow: false
special: false
slot: 22
#23
Spawner:
name: "&f&lIron Golem Spawner"
commands:
- "ss give %name% ig 1"
price: 50
material: "MOB_SPAWNER"
amount: 1
lore:
- " "
- "&3&l* &b&lPRICE: &7%price%⛁"
durability: 0
glow: false
special: false
slot: 23
#24
Pet:
name: "&f&l1x &7&lWolf Pet"
commands:
- "pet give %name% wolf"
price: 10
material: "SKULL_ITEM"
amount: 1
lore:
- " "
- "&3&l* &b&lPRICE: &7%price%⛁"
durability: 0
glow: false
special: false
slot: 24
#Special
#11
SuperPickaxe:
name: "&lThe Super Pickaxe"
commands:
- 'give %name% diamond_pickaxe 1 0 { display: { Name: "§b§lThe Super Pickaxe" }, ench: [ { id: 21, lvl: 10000 }, { id: 32, lvl: 10000 } ], Unbreakable: 1 }'
price: 500
material: "DIAMOND_PICKAXE"
amount: 1
lore:
- " "
- "&3&l* &b&lPRICE: &7%price%⛁"
durability: 0
glow: false
special: true
slot: 11
#20
Rank:
name: "&e&lRank &8» &b&lBasic"
commands:
- "pex user %name% group set basic"
price: 1500
material: "PAPER"
amount: 1
lore:
- " "
- "&3&l* &b&lPRICE: &7%price%⛁"
durability: 0
glow: false
special: true
slot: 20
Code:
Chance:
zombie:
type: "ZOMBIE"
chance: 5
skeleton:
type: "SKELETON"
chance: 5
blaze:
type: "BLAZE"
chance: 5
creeper:
type: "CREEPER"
chance: 8
enderman:
type: "ENDERMAN"
chance: 8
MobCoinsReceiveEvent | Called when a player receives a mobcoin from a mob
MobCoinsShopEvent | Called when a player purchases something from the mobcoin shop
MobCoinsRedeemEvent | Called when a player redeems a mobcoin item
MobCoinsShopEvent | Called when a player purchases something from the mobcoin shop
MobCoinsRedeemEvent | Called when a player redeems a mobcoin item
Code:
public class MobCoinsAPI {
private static MobCoins instance;
public MobCoinsAPI(MobCoins instance) {
this.instance = instance;
}
/*
Retrieve the profile manager
*/
public static ProfileManager getProfileManager() {
return instance.getProfileManager();
}
/*
Retrieve the reward manager
*/
public static RewardManager getRewardManager() {
return instance.getRewardManager();
}
/*
Retrieve the dropchance manager
*/
public static ChanceManager getChanceManager() {
return instance.getChanceManager();
}
/*
Retrieve the storage
*/
public static Storable getStorage() {
return instance.getStorage();
}
/*
Retrieve the mobcoin itemstack
*/
public static ItemStack getMobCoinItem() {
return instance.getMobCoinItem();
}
}
This plugin has placeholders for PlaceholderAPI and HolographicDisplays as listed below:
PlaceholderAPI:
- %supermobcoins_mobcoins% | Shows your current amount of mobcoins
- %supermobcoins_mobcoins_formatted% | Shows your current amount of mobcoins, formatted in a simpler way
- %supermobcoins_normal_time% | Shows the time left until the normal shop refreshes
- %supermobcoins_special_time% | Shows the time left until the special shop refreshes
- %supermobcoins_normal_time% | Shows the time left until the normal shop refreshes
- %supermobcoins_special_time% | Shows the time left until the special shop refreshes