mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +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" -> {
|
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;
|
boolean newIsPublic = !home.isPublic;
|
||||||
if (editArgs != null && !editArgs.isBlank()) {
|
if (editArgs != null && !editArgs.isBlank()) {
|
||||||
if (editArgs.equalsIgnoreCase("private")) {
|
if (editArgs.equalsIgnoreCase("private")) {
|
||||||
|
|||||||
Reference in new issue
Block a user