Added economy handling

This commit is contained in:
William278 committed 2020-12-16 00:51:55 +00:00
1 parent d5f534296d
commit 7fef9ea0f1
19 files changed
+403 -136

No files matched your search

@@ -279,6 +279,16 @@ public class dataManager {
}
}
// Increment the number of home slots a player has
public static void incrementPlayerHomeSlots(Player p) {
setPlayerHomeSlots(p, (getPlayerHomeSlots(p)+1));
}
// Set how many home slots a player has
private static void setPlayerHomeSlots(Player p, int slots) {
database.setPlayerHomeSlots(getPlayerId(p.getUniqueId()), slots);
}
// Return how many home slots a player has
public static Integer getPlayerHomeSlots(Player p) {
return getPlayerInteger(p, "home_slots");