Add ability to resolve unsafe positions by UUID where the identifier would otherwise be unsafe (#356)

This commit is contained in:
William authored and GitHub committed 2023-04-16 16:48:08 +01:00
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);
}};
}