mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
More command refactoring
This commit is contained in:
1 parent
3bde5305d7
commit
34eb2c1f54
17 files changed
+382
-540
No files matched your search
@@ -48,6 +48,10 @@ public class HomesManager {
|
||||
throw new ValidationException(ValidationException.Type.NOT_ENOUGH_HOME_SLOTS);
|
||||
}
|
||||
|
||||
if (!plugin.validateEconomyCheck(online, EconomyHook.Action.ADDITIONAL_HOME_SLOT)) {
|
||||
throw new ValidationException(ValidationException.Type.NOT_ENOUGH_MONEY);
|
||||
}
|
||||
|
||||
plugin.performEconomyTransaction(online, EconomyHook.Action.ADDITIONAL_HOME_SLOT);
|
||||
savedOwner.setHomeSlots(savedOwner.getHomeSlots() + 1);
|
||||
plugin.getDatabase().updateUserData(savedOwner);
|
||||
|
||||
Reference in new issue
Block a user