mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Refactor player location and server name fetching, prune unused locales
This commit is contained in:
1 parent
571f35429d
commit
7e3dab918f
23 files changed
+151
-200
No files matched your search
@@ -164,8 +164,8 @@ public class EditHomeCommand extends CommandBase implements TabCompletable, Cons
|
||||
default -> Optional.of(new MineDown(""));
|
||||
}).ifPresent(editor::sendMessage));
|
||||
}
|
||||
case "relocate" -> editor.getPosition().thenAccept(position ->
|
||||
plugin.getSavedPositionManager().updateHomePosition(home, position).thenRun(() -> {
|
||||
case "relocate" ->
|
||||
plugin.getSavedPositionManager().updateHomePosition(home, editor.getPosition()).thenRun(() -> {
|
||||
if (home.owner.uuid.equals(editor.uuid)) {
|
||||
editor.sendMessage(plugin.getLocales().getLocale("edit_home_update_location",
|
||||
home.meta.name).orElse(new MineDown("")));
|
||||
@@ -181,7 +181,7 @@ public class EditHomeCommand extends CommandBase implements TabCompletable, Cons
|
||||
editor.hasPermission(Permission.COMMAND_EDIT_HOME_PRIVACY.node))
|
||||
.forEach(editor::sendMessage);
|
||||
}
|
||||
}));
|
||||
});
|
||||
case "privacy" -> {
|
||||
boolean newIsPublic = !home.isPublic;
|
||||
if (editArgs != null && !editArgs.isBlank()) {
|
||||
|
||||
Reference in new issue
Block a user