Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void givePlayerCoin(int count, Player p) {
- if (getConfig().get("players." + p.getName().toLowerCase() + ".coins") != null) {
- int oldCount = getConfig().getInt("players." + p.getName().toLowerCase + ".coins");
- getConfig().set("players." + p.getName().toLowerCase + ".coins", oldCount + count);
- }
- else {
- getConfig().set("players." + p.getName().toLowerCase + ".coins", count);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement