Skip to content

Latest commit

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

CoinsAPI

BananaCrafts Economy plugin

API Usage Sample

@GetterpublicclassMainextendsJavaPluginimplementsListener {
privateCoinsAPIcoinsAPI;
@OverridepublicvoidonEnable() {
coinsAPI = CoinsAPIPlugin.INSTANCE.getCoinsAPI();
Bukkit.getPluginManager().registerEvents(this, this);
}
//Gives player 500 coins on first join.@EventHandlerpublicvoidonJoin(PlayerJoinEventevent) throwsSQLException {
Playerp = event.getPlayer();
if (!coinsAPI.doesPlayerExist(p.getName())) {
coinsAPI.addCoins(p.getName(), 500);
}
}
}

About

BananaCrafts Economy plugin

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages