mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +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
@@ -15,7 +15,11 @@ public class DelHomeCommand extends CommandBase {
|
||||
return;
|
||||
} else if (args.length == 2) {
|
||||
if (args[0].equalsIgnoreCase("all") && args[1].equalsIgnoreCase("confirm")) {
|
||||
SettingHandler.deleteAllHomes(p);
|
||||
if (p.hasPermission("huskhomes.delhome.all")) {
|
||||
SettingHandler.deleteAllHomes(p);
|
||||
} else {
|
||||
MessageManager.sendMessage(p, "error_no_permission");
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,11 @@ public class DelWarpCommand extends CommandBase {
|
||||
return;
|
||||
} else if (args.length == 2) {
|
||||
if (args[0].equalsIgnoreCase("all") && args[1].equalsIgnoreCase("confirm")) {
|
||||
SettingHandler.deleteAllWarps(p);
|
||||
if (p.hasPermission("huskhomes.delwarp.all")) {
|
||||
SettingHandler.deleteAllWarps(p);
|
||||
} else {
|
||||
MessageManager.sendMessage(p, "error_no_permission");
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user