mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +00:00
Add permission node for /delhome all and /delwarp all
Signed-off-by: BuildTools <[email protected]>
This commit is contained in:
1 parent
280a37ef5b
commit
77ed1a307e
4 files changed
+25
-3
No files matched your search
@@ -214,6 +214,10 @@ public class SettingHandler {
|
||||
}
|
||||
} else {
|
||||
if (homeName.equalsIgnoreCase("all")) {
|
||||
if (!player.hasPermission("huskhomes.delhome.all")) {
|
||||
MessageManager.sendMessage(player, "error_no_permission");
|
||||
return;
|
||||
}
|
||||
if (DataManager.getPlayerHomes(player.getName(), connection).size() == 0) {
|
||||
MessageManager.sendMessage(player, "error_no_homes_set");
|
||||
return;
|
||||
@@ -278,6 +282,10 @@ public class SettingHandler {
|
||||
WarpCommand.Tab.updateWarpsTabCache();
|
||||
} else {
|
||||
if (warpName.equalsIgnoreCase("all")) {
|
||||
if (!player.hasPermission("huskhomes.delwarp.all")) {
|
||||
MessageManager.sendMessage(player, "error_no_permission");
|
||||
return;
|
||||
}
|
||||
if (DataManager.getWarps(connection).size() == 0) {
|
||||
MessageManager.sendMessage(player, "error_no_warps_set");
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user