Skip to content

JoshiCodes/CoinManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

CoinManager created by JoshiZockt_

A simple CoinManager to give, set or remove Coins from a Player. Includes an API.

Download


You can download the Spigot Plugin here: (SOON)


Commands


The CoinManager have currently 1 Command:
balance

This Command shows the current Player balance. You can also add a Player as argument to view their Balance.




API


The CoinManager have 4 Events you can listen to:
- PlayerCoinsAddEvent (When Coins for a Player are added)
- PlayerCoinsRemoveEvent (When Coins for a Player are removed)
- PlayerCoinsSetEvent (When Coins for a Player are set)
- PlayerPayCoinsEvent (When someone pays Coins to another Player)




You can give a Player Coins with this Code:

CoinManager.getStorageMananager().addCoins(UUID, COINS);

You can remove Coins from a Player with this code:

CoinManager.getStorageMananager().removeCoins(UUID, COINS);

You can also set the Coins for a Player:

CoinManager.getStorageMananager().setCoins(UUID, COINS);

And of course you can get the Coins of a Player:

CoinManager.getStorageMananager().getCoins(UUID);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages