Lemon MobCoins [BungeeCord & MySQL Support] 1.4

Kill mobs and get coins that can be used to buy awesome things

  1. LemmoTresto
    Native Minecraft Version:
    Legacy (< 1.13)
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    Source Code:
    https://github.com/LemmoTresto/LemonMobCoins
    Contributors:
    GabyTM for the idea and design of the resource page!
    Languages Supported:
    Any language!
    [​IMG]
    This lightweight plugin allows you to get MobCoins for killing entities!
    Very customizable it's own shop built-in and you can custom every message!


    [​IMG]
    - Different amounts of coins to receive.
    - Optional random amount between two integers of coins.
    - A certain chance to give the coins.
    - Customizable shop!
    - Custom command for shop
    - Execute any amount of commands on purchase of an item in the shop.
    - Administrator commands for setting, giving and taking coins from players.
    - Different help menu for admins.
    - PlaceholderAPI Support!
    - All messages are customizable!
    - BungeeCord Support without having to use MySQL!
    - MySQL Support.
    - More!!


    [​IMG]

    • /mobcoins - Main command
      aliases: /mc /mobc /mobcoin /mcoin /mcoins
    • /mobcoins help - Shows help menu shows admin commands if player has lemonmobcoins.admin
    • /mobcoins shop - Opens shop
    • /mobcoins balance <player> - Shows balance of player if no player given will give balance of player executing the command.
    • /mobcoins set <player> <balance> - Set the balance of a player
    • /mobcoins give <player> <amount> - Give a player an amount of coins
    • /mobcoins take <player> <amount> - Take away a certain amount of coins from a player.
    • /mobcoins reset <player> - Resets the player balance of a player
    • /mobcoins reload - Reload the plugin completely.
    • /mshop - Opens the shop!

    You can also set a custom command in the config to open the shop too this defaults to /coinshop.

    Permissions:

    To execute admin commands you need lemonmobcoins.admin
    The admin commands are

    • /mobcoins set
    • /mobcoins take
    • /mobcoins give
    • /mobcoins reset
    • /mobcoins reload
    If you have access to these commands you also have a different help menu compared to players without this permission.

    You need a permission to open the shop: lemonmobcoins.shop

    When buying in the shop you also need the permission lemonmobcoins.buy.<identifier> UNLESS you have permission set to false in the config for that item!
    The identifier is the name of the item in the config
    so in the default config this is 'drill'


    [​IMG]
    The configuration is quite straightforward
    Code (YAML):

    # Bungeecord do you want to enable bungeecord mode? This requires the plugin to be on bungeecord and the bukkit servers you want to use this plugin on.
    bungeecord
    : false

    # Storage this is the storage section
    # This allows you to define which storage type you want to use!
    # Available storage types: flatfile, mysql
    # If none is found it will default to flatfile!
    # If choosing MySQL make sure you fill in the mysql section!
    # The mysql section is straightforward fill everything in make sure the database exists and you are good to go
    # The plugin itself already makes a table so do not worry about this.
    storage
    :
      type
    : "flatfile"
      mysql
    :
        hostname
    : "localhost"
        port
    : "3306"
        username
    : ""
        password
    : ""
        database
    : "lemonmobcoins"

    # Mob-list
    # This list is the chances and the amount of coins the mobs drop when killed.
    #
    # Chance: the chance for the amount to be dropped. Make this 100 if you want it to always drop the amount.
    # Amount: the amount to be dropped. This can be randomized by doing:
    # amount: "minimumvalue-maximumvalue"
    # For example I want to drop a random amount ranging from 2 to 8 coins
    # Then I would do:
    # amount: "2-8"
    mob-list
    :
      blaze
    :
        chance
    : 5
        amount
    : "1-2"
      skeleton
    :
        chance
    : 5
        amount
    : 1
      zombie
    :
        chance
    : 5
        amount
    : 1
      creeper
    :
        chance
    : 8
        amount
    : 1
      enderman
    :
        chance
    : 8
        amount
    : 1
      wither
    :
        chance
    : 50
        amount
    : 1

    # This is the gui!
    # The command is what is used to open the shop!
    # Rows is the amount of rows you want in the gui make sure you set your items accordingly otherwise it will error.
    # The items list allows you to add as many items as you want!
    # The name // identifier can be anything and will just be used as the permission for this item.
    # Glowing is if the item looks like it is enchanted.
    # Permission is a boolean (true/false) if you want everyone to be able to buy this and not require a permission set this to false otherwise set it to true!
    # The price in mobcoins that you need to make this purchase.
    # The commands to run after purchase.
    gui
    :
      name
    : "&8Mob Coin Shop"
      command
    : "/coinshop"
      rows
    : 1
      items
    :
        drill
    :
          material
    : "DIAMOND_PICKAXE"
          slot
    : 1
          amount
    : 1
          displayname
    : "&bDiamond &fDrill"
          glowing
    : true
          lore
    :
         - "&7Efficiency VI"
          - "&7Unbreaking IV"
          - "&7Fortune IV"
          - "&7Made by the most skilled blacksmiths"
          - ''
          - "&8* &7Price
    : &6$&e100"
          permission
    : false
          price
    : 100
          commands
    :
         - "give %player% diamond_pickaxe{display:{Lore:[\"Made by the Most Skilled Blacksmiths\"]},Enchantments:[{id:\"efficiency\",lvl:4},{id:\"fortune\",lvl:6}]} 1"
    Code (YAML):
    # Storage this is the storage section
    # This allows you to define which storage type you want to use!
    # Available storage types: flatfile, mysql
    # If none is found it will default to flatfile!
    # If choosing MySQL make sure you fill in the mysql section!
    # The mysql section is straightforward fill everything in make sure the database exists and you are good to go
    # The plugin itself already makes a table so do not worry about this.
    storage
    :
      type
    : "flatfile"
      mysql
    :
        hostname
    : "localhost"
        port
    : "3306"
        username
    : ""
        password
    : ""
        database
    : "lemonmobcoins"

    The messages file is as easy as the config file if not easier :D!
    Code (YAML):
    # Use \n for a newline!
    # Use & for color codes.
    RECEIVED_COINS_FROM_KILL
    : "&fYou received &e%amount% &fMobCoins for killing &e%entity%&f, your total balance is &e%balance%."
    PURCHASED_ITEM_FROM_SHOP
    : "&fYou bought &e%item% &ffor &e%amount%&f coins, your balance left is &e%balance%."
    NOT_ENOUGH_MONEY_TO_PURCHASE
    : "&fYou do not have enough funds to buy this! Your current balance is &e%balance%."
    NO_PERMISSION_TO_PURCHASE
    : "&cYou do not have permission to buy this!"
    UNKNOWN_SUBCOMMAND
    : "&fUnknown subcommand, try &e/mobcoins help"
    ADMIN_HELP_MENU
    : "&e/mobcoins help &8- &fDisplay this menu\n&e/mobcoins balance &8- &fCheck your balance\n&e/mobcoins balance [name] &8- &fCheck somebody else balance\n&e/mobcoins shop\n&e/mshop &8- &fOpen the shop\n&e/mc give [name] [amount] &8- &fGive mob coins to a player\n&e/mc take [name] [amount] &8- &fTake mob coins from a player\n&e/mc set [name] [amount] &8- &fSet the balance of a player\n&e/mc reset [name] &8- &fResets player's balance\n&e/mc reload &8- &fReloads the plugin"
    PLAYER_HELP_MENU
    : "&e/mobcoins help &8- &fDisplay this menu\n&e/mobcoins balance &8- &fCheck your balance\n&e/mobcoins balance [name] &8- &fCheck somebody else balance\n&e/mobcoins shop\n&e/mshop &8- &fOpen the shop"
    OWN_PLAYER_BALANCE
    : "&fYour balance is &e%balance%."
    OTHER_PLAYER_BALANCE
    : "&e%player%'s &fbalance is &e%balance%."
    CONSOLE_CANNOT_USE_COMMAND
    : "Console cannot use this command!"
    UNKNOWN_PLAYER
    : "&fUnknown player."
    NO_PERMISSION_TO_EXECUTE
    : "&cYou don't have permission to execute this command!"
    SET_PLAYER_BALANCE
    : "&fSuccessfully set &e%player%'s &fbalance to &e%balance%."
    TAKE_PLAYER_BALANCE
    : "&fSuccessfully taken &e%amount &fcoins from &e%player%'s &fbalance."
    GIVE_PLAYER_BALANCE
    : "&fSuccessfully given &e%amount% &fto &e%player%."
    RESET_PLAYER_BALANCE
    : "&fSuccessfully reset &e%player%'s&f balance."
    START_RELOAD
    : "&fReloading the &eplugin&f.."
    SUCCESSFUL_RELOAD
    : "&fReloaded plugin &esuccessfully&f!"
    FAILED_RELOAD
    : "&fReloading the plugin &efailed&f, please restart the server!"
    INVALID_USAGE_SET_COMMAND
    : "&fInvalid usage, usage: &e/mobcoins set [name] [amount]"
    INVALID_USAGE_GIVE_COMMAND
    : "&fInvalid usage, usage: &e/mobcoins give [name] [amount]"
    INVALID_USAGE_TAKE_COMMAND
    : "&fInvalid usage, usage: &e/mobcoins take [name] [amount]"
    INVALID_USAGE_RESET_COMMAND
    : "&fInvalid usage, usage: &e/mobcoins reset [name]"

    To enable BungeeCord Support place the jar file in all servers you want to have the support for and also on BungeeCord then make sure to enable bungeecord in the config of the bukkit servers and you are good to go!


    [​IMG]
    For support or if you just want to have a nice talk go to our discord!

    https://lemmotresto.com/links/discord

    Please don't ask for support in the review section it's much harder for me to give you support this way and it isn't supposed to be used as a support section. If you do I will report your review!

    Feel free to donate!

    For suggestions and more go to my discord or shoot me a PM I love suggestions :D!

    Thanks for using my plugin and make sure to give me a nice review!
    StarryMuffin and GabTM like this.

Recent Updates

  1. BungeeCord & MySQL Support!!
  2. 1.3 Update!
  3. MC1.8 bug fix

Recent Reviews

  1. DontStealMyPlu
    DontStealMyPlu
    5/5,
    Version: 1.4
    I really like this plugin! but the only thing is i have placeholderapi and i put %lemonmobcoins_balance_formatted% for a placeholder on my scoreboard it does not work. I already have done /papi ecloud download Lemonmobcoins and reloaded but nothing worked, how i fix? I also use FeatherBoard
    1. LemmoTresto
      Author's Response
      Thank you!
      For featherboard you need to replace the %% with {} and add placeholderapi_ in front
  2. iiDirtblock
    iiDirtblock
    5/5,
    Version: 1.4
    This plugin is just amazing, Is there possibly a way you can add a way so that players can do /mobcoins withdraw (amount) and it gives them mobcoins so they can sell it to other players?
    1. LemmoTresto
      Author's Response
      Thank you for the review, Your withdraw command has been added already in the develop builds which will soon make up v2.0
  3. endlessgaming1
    endlessgaming1
    5/5,
    Version: 1.4
    great plugin it really works really well and its free please download its so good
    1. LemmoTresto
      Author's Response
      Thanks haha :D
  4. StarryMuffin
    StarryMuffin
    5/5,
    Version: 1.4
    Works amazingly, and provides an essential part of my server. Amazingly, this plugin is completely free! I can't wait for more plugins from LemmoTrestro!
    1. LemmoTresto
  5. EChondo
    EChondo
    5/5,
    Version: 1.3
    Plugin works great, default config was made with Essentials, so if you aren't using Essentials then you will need to figure out the base game's give command syntax.

    Love that this is a simple coin shop system and can self-manage the items myself. Using this for a small private server between friends.
    1. LemmoTresto
  6. Johanlw99
    Johanlw99
    5/5,
    Version: 1.2
    Good working plugin and a active owner that fixes bugs really quick.

    Keep up the good work :)
    1. LemmoTresto
      Author's Response
      Thanks! ^_^
  7. GabTM
    GabTM
    5/5,
    Version: 1.1
    Just wow! This is the plugin that I was looking for months. It support placeholderapi, easy to understand and very customizable!

    Thank you for making this awesome plugin! <3
    1. LemmoTresto
      Author's Response
      ;) Glad to have helped you!