mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Add ability to resolve unsafe positions by UUID where the identifier would otherwise be unsafe (#356)
This commit is contained in:
1 parent
4bd0244891
commit
3c18214016
26 files changed
+188
-60
No files matched your search
@@ -141,7 +141,7 @@ public class EditWarpCommand extends SavedPositionCommand<Warp> {
|
||||
@NotNull
|
||||
private List<MineDown> getWarpEditorWindow(@NotNull Warp warp) {
|
||||
return new ArrayList<>() {{
|
||||
plugin.getLocales().getLocale("edit_warp_menu_title", warp.getMeta().getName())
|
||||
plugin.getLocales().getLocale("edit_warp_menu_title", warp.getName())
|
||||
.ifPresent(this::add);
|
||||
|
||||
plugin.getLocales().getLocale("edit_warp_menu_metadata",
|
||||
@@ -169,11 +169,11 @@ public class EditWarpCommand extends SavedPositionCommand<Warp> {
|
||||
String.format("%.2f", warp.getYaw()), String.format("%.2f", warp.getPitch()))
|
||||
.ifPresent(this::add);
|
||||
|
||||
plugin.getLocales().getLocale("edit_warp_menu_use_buttons", warp.getMeta().getName())
|
||||
plugin.getLocales().getLocale("edit_warp_menu_use_buttons", warp.getSafeIdentifier())
|
||||
.ifPresent(this::add);
|
||||
plugin.getLocales().getLocale("edit_warp_menu_manage_buttons", warp.getMeta().getName())
|
||||
plugin.getLocales().getLocale("edit_warp_menu_manage_buttons", warp.getSafeIdentifier())
|
||||
.ifPresent(this::add);
|
||||
plugin.getLocales().getLocale("edit_warp_menu_meta_edit_buttons", warp.getMeta().getName())
|
||||
plugin.getLocales().getLocale("edit_warp_menu_meta_edit_buttons", warp.getSafeIdentifier())
|
||||
.ifPresent(this::add);
|
||||
}};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user