mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Added economy handling
This commit is contained in:
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");
|
||||
|
||||
Reference in new issue
Block a user