Sueta
MU

MultiCoinAPI - There are no borders!

1.1

With the API you have the possibility to create infinite coins.

·Plugin

With the API you have the possibility to create infinite coins.

This API simplifies the creation of coins with different names. With the help of this plugin you have an infinite number of application possibilities since it is only simplified methods.

To create coins, you must use the following method in the onEnable() range:

@Override
    public void onEnable() {
        super.onEnable();
        MultiCoinAPI.createCoins(String name); //Don't use Space
    }

Next, you need to register the players who join the server in the MultiCoinAPI. (This simply means to create a MySQL connection and then enter the player into the MySQL database.)

@EventHandler
    public void join(PlayerJoinEvent e) {
        Player p = e.getPlayer();
      
        MultiCoinAPI.setCoins(String name, Player player, int coins);
    }

The Wars, Now you can use the coins, using the following methods:

MultiCoinAPI.takeCoins(String name, Player player, int Coins);
        MultiCoinAPI.addCoins(String name, Player player, int Coins);
        MultiCoinAPI.getCoins(String name, Player player);

German Video:
YouTube

Similar projects

Plugin →