mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Text fixes and fixed setting handler ignoring economy costs
This commit is contained in:
1 parent
e31782e298
commit
5cbc279008
2 files changed
+3
-2
No files matched your search
@@ -140,6 +140,7 @@ public class editHomeCommand implements CommandExecutor {
|
||||
if (publicHomeCost > 0) {
|
||||
if (!economy.takeMoney(p, publicHomeCost)) {
|
||||
messageManager.sendMessage(p, "error_insufficient_funds", economy.format(publicHomeCost));
|
||||
return true;
|
||||
} else {
|
||||
messageManager.sendMessage(p, "edit_home_privacy_public_success_economy", homeName, economy.format(publicHomeCost));
|
||||
}
|
||||
|
||||
@@ -102,13 +102,13 @@ public class settingHandler {
|
||||
return;
|
||||
}
|
||||
dataManager.deleteWarp(warpName);
|
||||
messageManager.sendMessage(player, "warp_deleted");
|
||||
messageManager.sendMessage(player, "warp_deleted", warpName);
|
||||
if (HuskHomes.settings.doDynmap() && HuskHomes.settings.showWarpsOnDynmap()) {
|
||||
dynamicMap.removeDynamicMapMarker(warpName);
|
||||
}
|
||||
warpTabCompleter.updateWarpsTabCache();
|
||||
} else {
|
||||
messageManager.sendMessage(player, "error_warp_invalid");
|
||||
messageManager.sendMessage(player, "error_warp_invalid", warpName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user