mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Tweak edit UI, add teleport button and fixes to delhome
This commit is contained in:
1 parent
1a280393ea
commit
fd2fb72d3d
4 files changed
+26
-29
No files matched your search
@@ -81,14 +81,11 @@ public class EditHomeCommand extends CommandBase implements TabCompletable, Cons
|
||||
private void editHome(@NotNull Home home, @NotNull OnlineUser editor,
|
||||
@Nullable String editOperation, @Nullable String editArgs) {
|
||||
if (editOperation == null) {
|
||||
try {
|
||||
boolean otherOwner = editor.uuid.equals(home.owner.uuid);
|
||||
home.getHomeEditorWindow(plugin.getLocales(), otherOwner, plugin.getSettings().crossServer,
|
||||
!otherOwner || editor.hasPermission(Permission.COMMAND_EDIT_HOME_OTHER.node))
|
||||
.forEach(editor::sendMessage);
|
||||
} catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
boolean otherOwner = editor.uuid.equals(home.owner.uuid);
|
||||
home.getHomeEditorWindow(plugin.getLocales(), otherOwner, plugin.getSettings().crossServer,
|
||||
!otherOwner || editor.hasPermission(Permission.COMMAND_HOME_OTHER.node),
|
||||
!otherOwner || editor.hasPermission(Permission.COMMAND_EDIT_HOME_OTHER.node))
|
||||
.forEach(editor::sendMessage);
|
||||
return;
|
||||
}
|
||||
switch (editOperation.toLowerCase()) {
|
||||
|
||||
Reference in new issue
Block a user