Add /edithome, use instant for timestamps, new locales

This commit is contained in:
William committed 2022-08-16 00:58:26 +01:00
1 parent eddae1051c
commit a91128ca3d
24 files changed
+793 -205

No files matched your search

@@ -29,8 +29,8 @@ public class SetWarpCommand extends CommandBase {
position).thenAccept(setResult ->
onlineUser.sendMessage(switch (setResult.resultType()) {
case SUCCESS -> {
assert setResult.setPosition() != null;
yield plugin.getLocales().getLocale("set_warp_success", setResult.setPosition().meta.name)
assert setResult.savedPosition().isPresent();
yield plugin.getLocales().getLocale("set_warp_success", setResult.savedPosition().get().meta.name)
.orElse(new MineDown(""));
}
case FAILED_DUPLICATE -> plugin.getLocales().getLocale("error_set_warp_name_taken")