Coin | Economy | Money System + API 1.1.2-SNAPSHOT

API, CoinSystem, Coin, Coins, Money

  1. Jens98
    Native Minecraft Version:
    Legacy (< 1.13)
    Tested Minecraft Versions:
    • 1.8
    [​IMG]

    Very cheap and very high quality Minecraft Server on prepaid rent

    5% Discount Code: Jens98
    https://deinserverhost.de/Partner/Jens98

    coins-package-500.png

    CoinSystem + API

    This plugin allows you to integrate an efficient currency system into your system. The API uses asynchronous methods for most things.

    You can also customize all messages and commands in an extra file.

    Don't forget to depend my Plugin in your Plugin.yml

    Cheap MC Server: Click
    Cheap Root Server: Click


    Discord for Support

    [​IMG]



    Code (Text):
    name: YourPlugin
    main: path
    version: 1.0
    description: Info
    depend: [CoinSystem]

    Hook into:

    Code (Text):
    Function coinAPI = new Function();



    coinAPI#isUserExist(UUID)
    coinAPI#isUserExist(username)
    coinAPI#register
    coinAPI#setCoins
    coinAPI#addCoins
    coinAPI#updateLetzteTransaktion or coinAPI#updateLastTransaction
    coinAPI#getLetzteTransaktion or coinAPI#getLastTransaction
    coinAPI#removeCoins
    coinAPI#getCoins
    coinAPI#setCoinsAsync
    coinAPI#updateCoinsAsync(Sender, UUID, Coins or -Coins)
    coinAPI#payAsync
    coinAPI#getCoinsAsync (resultString: "Coins")
    coinAPI#stringCoins
    coinAPI#haveEnoughCoins(UUID)
    coinAPI#haveEnoughCoins(username)
     


    Commands:

    • AddCoins <Name|UUID> <Amount> | system.commands.coins.add
    • RemoveCoins <Name|UUID> <Amount> | system.commands.coins.remove
    • SetCoins <Name|UUID> <Amount> | system.commands.coins.set
    • Pay <Name> <Amount> | system.commands.coins.pay
    • Coins <Name> | system.commands.coins.display

    Pros:

    • Asynchron
    • MySQL
    • JSON FileConfiguration
    • Fancy
    • 2 own Events
    • - PlayerPayPlayerEvent
    • - PlayerCoinsChangeEvent
    • All Commands Deactivatable Activatable
    • No command registered in the PluginYML
    • Msg Class included

    Examples:

    Events

    Code (Text):
       @EventHandler(priority = EventPriority.HIGHEST)
        public void onPay(PlayerPayPlayerEvent event) {
     
            Player p = event.getPlayer(); /* player who pay the money */
            Player target = event.getTarget(); /* Target who gets the money */
     
            int payer_coins = event.getNewPlayerCoins(); /* Credit balance from payer */
            int target_coins = event.getNewTargetCoins(); /* Credit balance from target */
     
            int payed_coins = event.getPayed(); /* Credit amount what was paid */
     
        }

        @EventHandler(priority = EventPriority.HIGHEST)
        public void onPay(PlayerCoinsChangeEvent event) {

            Player p     = event.getPlayer(); /* player */
            int    coins = event.getCoins();  /* Credit balance from player */

        }
     
    Message Class:

    Code (Text):

    new msg(sender, "This is a Test Message").addPrefix().addSound(Sound.AMBIENCE_CAVE, 5, 5).centerText().send();

    Terms of Service:

    You are not allowed to publish my code in any other form.
    Errors are not written in a review but can be posted via private message or discussion.
    You are not permitted to sell, give or redistribute this plugin
    You can't claim this plugin as your own

    [​IMG]

Recent Updates

  1. Download Server
  2. Discord Server added for Support
  3. New Features

Recent Reviews

  1. Floxiii
    Floxiii
    5/5,
    Version: 1.1.2-SNAPSHOT
    Weiterhin eine gut Coins API :D
    Auf jeden Fall empfehlenswert...
    Dev ist auch mega korrekt
  2. konkred
    konkred
    5/5,
    Version: 1.0.2-SNAPSHOT
    sau nices Plugin. use es auf meinem 100%-Selfcode-Netzwerk. Joint alle drauf test.avrx.de
    1. Jens98
      Author's Response
      Danke dir, freut mich zu hören.
  3. Ablage
    Ablage
    5/5,
    Version: 1.0.1
    Ausgezeichnet Coins API! Benutze sie selber für meinen Server und alles klappt Einwandfrei.
    Der Entwickler hat das wirklich sehr gut gemacht.
    1. Jens98
      Author's Response
      Danke dir, freut mich zu hören.
  4. Floxiii
    Floxiii
    5/5,
    Version: 1.0.1
    Sehr gute Coins API! Kann ich nur empfehlen.. :D
    Developer ist Ehrenmann :D


    Mfg Felix
    1. Jens98
      Author's Response
      Danke dir, freut mich zu hören.