Sueta

Mobcoins

2019-03-10

Simple plugin that rewards mobcoins on a kill.

·Plugin

This is a free mobcoins plugin where you can gain mobcoins from killing mobs! You can chance the chance of getting mobcoins using the config.yml. You can also change the amount of mobcoins received by listening for the "
ReceiveMobcoinEvent" class.

Commands:
/tokens balance -> check your balance, or someone elses
/tokens shop -> open the token shop, customisable in the config.yml
/tokens reload -> reload the config

Permissions (for commands):
mobcoins.balance
mobcoins.shop
mobcoins.reload

NOTE:
If you'd like to change how many mobcoins a player gets from killing a mob, you can listen to the event, check the mob that was killed and then use event.setReceivedAmount([amount]) or even, you can use ThreadLocalRandom.current().nextInt(a,b) to set a random amount from a to b.

config.yml
#
# WELCOME TO THE CONFIG
#
# CHANCES WORK ON A 1 IN X BASIS
# IF YOUR CHANCE IS 100, THERE IS A 1 IN 100 CHANCE
# OF A PLAYER GETTING A MOBCOIN.
#
# A 1 IN 1 CHANCE IS 100%
# TO WORK OUT A PERCENTAGE CHANCE, USE 100/X.

#
# PLACEHOLDERS:
# %mob% -> The type of mob that you killed.
# %chance% -> The chance of getting a coin, formatted as 1 in X chance.
# %percent% -> The percentage of getting a coin, formatted as X%.
# %coins% -> The amount of coins a player received.
#
# %player% -> The player that bought something in the shop.
#

Prefix: "&b&lPrefix &f&l>"

# PREFIX NOT NEEDED FOR MESSAGES. THE PREFIX IS ALREADY THERE.

Received-Coin: "&bYou killed a %mob% and received &e&l%coins% &bcoins!"

Shop:
  '1':
    Slot: 14
    Item: Nether_Star
    Name: "&b&lToken Shop"
    Lore:
      - "&bThis is the token shop"
      - "&bBuy cool perks and upgrades from here!"
    Buyable: false
  '2':
    Slot: 23
    Item: Dirt
    Name: "&4The fanciest dirt"
    Lore:
      - "&4Buy the &6&labsolute &4greatest dirt"
      - "legit i swear"
    Buyable: true
    Price: 10
    Commands:
      - give %player% dirt 1 {ench:[{id:19,lvl:10]}]


CREEPER: 1
SKELETON: 1
SPIDER: 1
GIANT: 1
ZOMBIE: 1
SLIME: 1
GHAST: 1
PIG_ZOMBIE: 1
ENDERMAN: 1
CAVE_SPIDER: 1
SILVERFISH: 1
BLAZE: 1
MAGMA_CUBE: 1
ENDER_DRAGON: 1
WITHER: 1
BAT: 1
WITCH: 1
ENDERMITE: 1
GUARDIAN: 1
PIG: 1
SHEEP: 1
COW: 1
CHICKEN: 1
SQUID: 1
WOLF: 1
MUSHROOM_COW: 1
SNOWMAN: 1
OCELOT: 1
IRON_GOLEM: 1
HORSE: 1
RABBIT: 1
VILLAGER: 1
PLAYER: 1

Similar projects

Plugin →