mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Fix COMMAND_EDIT_HOME_PRIVACY node not being checked for editing home privacy
This commit is contained in:
1 parent
35806c671e
commit
172b8e06a5
1 file changed
+5
@@ -183,6 +183,11 @@ public class EditHomeCommand extends CommandBase implements TabCompletable {
|
||||
}
|
||||
});
|
||||
case "privacy" -> {
|
||||
if (!editor.hasPermission(Permission.COMMAND_EDIT_HOME_PRIVACY.node)) {
|
||||
plugin.getLocales().getLocale("error_no_permission")
|
||||
.ifPresent(editor::sendMessage);
|
||||
return;
|
||||
}
|
||||
boolean newIsPublic = !home.isPublic;
|
||||
if (editArgs != null && !editArgs.isBlank()) {
|
||||
if (editArgs.equalsIgnoreCase("private")) {
|
||||
|
||||
Reference in new issue
Block a user