From 80fcf8fe1950f8ab0118035af9ed3529a0132f98 Mon Sep 17 00:00:00 2001 From: Ben Woo <30431861+benwoo1110@users.noreply.github.com> Date: Wed, 20 Sep 2023 12:10:02 +0800 Subject: [PATCH] Fix remove success message key --- .../mvplugins/multiverse/core/commands/RemoveCommand.java | 2 +- .../org/mvplugins/multiverse/core/utils/MVCorei18n.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/RemoveCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/RemoveCommand.java index 677f55dc..67d21c2b 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/RemoveCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/RemoveCommand.java @@ -47,7 +47,7 @@ class RemoveCommand extends MultiverseCommand { worldManager.removeWorld(worldName) .onSuccess(removedWorldName -> { Logging.fine("World remove success: " + removedWorldName); - issuer.sendInfo(MVCorei18n.REMOVEWORLD_REMOVED, "{world}", removedWorldName); + issuer.sendInfo(MVCorei18n.REMOVE_SUCCESS, "{world}", removedWorldName); }).onFailure(failure -> { Logging.fine("World remove failure: " + failure); issuer.sendError(failure.getFailureMessage()); diff --git a/src/main/java/org/mvplugins/multiverse/core/utils/MVCorei18n.java b/src/main/java/org/mvplugins/multiverse/core/utils/MVCorei18n.java index c1eed20d..c8a4af49 100644 --- a/src/main/java/org/mvplugins/multiverse/core/utils/MVCorei18n.java +++ b/src/main/java/org/mvplugins/multiverse/core/utils/MVCorei18n.java @@ -43,6 +43,7 @@ public enum MVCorei18n implements MessageKeyProvider { // delete command DELETE_DELETING, DELETE_PROMPT, + DELETE_SUCCESS, // Dumps command DUMPS_DESCRIPTION, @@ -76,6 +77,9 @@ public enum MVCorei18n implements MessageKeyProvider { RELOAD_RELOADING, RELOAD_SUCCESS, + // remove command + REMOVE_SUCCESS, + // root MV command ROOT_TITLE, ROOT_HELP, @@ -115,7 +119,6 @@ public enum MVCorei18n implements MessageKeyProvider { CREATEWORLD_WORLDEXISTLOADED, CREATEWORLD_BUKKITCREATIONFAILED, - DELETE_SUCCESS, DELETEWORLD_WORLDNONEXISTENT, DELETEWORLD_LOADFAILED, DELETEWORLD_WORLDFOLDERNOTFOUND, @@ -133,7 +136,6 @@ public enum MVCorei18n implements MessageKeyProvider { LOADWORLD_WORLDEXISTLOADED, LOADWORLD_BUKKITCREATIONFAILED, - REMOVEWORLD_REMOVED, REMOVEWORLD_WORLDNONEXISTENT, UNLOADWORLD_WORLDALREADYUNLOADING,