Home›Java›Mods›PolisBank
PolisBank
ModsJava

PolisBank

Java mod listed for Minecraft 1.12. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
PolisBank :
This API will help you to manage the players money.

It generate the player's account in accounts.yml when he join the server for the first time.

Spoiler: config.yml
Code (YAML):
#config.yml
#Here you can change PolisBank's settings
#
#Default money when a new player join the server
default-value
: 100

Spoiler: Download instructions
1) Download PolisBank.jar
2) Go into your server folder
3) Put the PolisBank.jar in the plugin folder
4) Run your server !

Spoiler: How to use this API
1) Download PolisBank.jar
2) For eclipse IDE :
a) Create a new Project
b) Add on you're librairies PolisBank.jar
library.png
c) Put on your plugin.yml the following line :
Code (YAML):
depends : [PolisBank ]
d) And now you can use this API !

Spoiler: Exemple Main.java :
Here the plugin send you "Welcome, you have : " + the account's money

Code (Java):
public class Main extends JavaPlugin implements Listener {

    @Override
    public void onEnable ( ) {
       
        getServer ( ). getPluginManager ( ). registerEvents ( this, this ) ;
    }
   
    @EventHandler
    public void onPlayerJoin (PlayerJoinEvent event ) {
       
        Account account = AccountManager. getAccount (event. getPlayer ( ) ) ;
        event. getPlayer ( ). sendMessage ( "Welcome, you have : " +account. getMoney ( ) ) ;
    }
}

Methods :
AccountManager.getAccount(Player player); return the player account
account.getMoney(); return the account's money
account.addMoney(int amount); add money to the account
account.removeMoney(int amount); remove money to the account

Thank you if you download this API !
Don't forget to rate this page ! :)
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

PolisBank is a free Minecraft Java mod. Compatible with Minecraft 1.12. Downloaded 69 times (via Spigot). Download it and open it directly in the game.

Explore more