From 10c910f00f0a3704b4173cea1775c4c05a67c3e0 Mon Sep 17 00:00:00 2001 From: Lildirt Date: Fri, 3 Mar 2023 11:21:10 -0500 Subject: [PATCH] i18n: fix prompt message mappings --- .../MultiverseCore/commands/DeleteCommand.java | 7 ++++++- .../onarandombox/MultiverseCore/commands/RegenCommand.java | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/onarandombox/MultiverseCore/commands/DeleteCommand.java b/src/main/java/com/onarandombox/MultiverseCore/commands/DeleteCommand.java index 35c570ac..ee65b5c3 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/commands/DeleteCommand.java +++ b/src/main/java/com/onarandombox/MultiverseCore/commands/DeleteCommand.java @@ -1,6 +1,7 @@ package com.onarandombox.MultiverseCore.commands; import co.aikar.commands.BukkitCommandIssuer; +import co.aikar.commands.MessageType; import co.aikar.commands.annotation.CommandAlias; import co.aikar.commands.annotation.CommandCompletion; import co.aikar.commands.annotation.CommandPermission; @@ -48,7 +49,11 @@ public class DeleteCommand extends MultiverseCoreCommand { issuer.sendInfo(MVCorei18n.DELETE_SUCCESS, "{world}", worldName); }, - "{@@mv-core.delete.prompt}".replace("{world}", worldName) + this.plugin.getMVCommandManager().formatMessage( + issuer, + MessageType.INFO, + MVCorei18n.DELETE_PROMPT, + "{world}", worldName) )); } } diff --git a/src/main/java/com/onarandombox/MultiverseCore/commands/RegenCommand.java b/src/main/java/com/onarandombox/MultiverseCore/commands/RegenCommand.java index 604fcf83..19ef73eb 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/commands/RegenCommand.java +++ b/src/main/java/com/onarandombox/MultiverseCore/commands/RegenCommand.java @@ -4,6 +4,7 @@ import java.util.Collections; import java.util.Random; import co.aikar.commands.BukkitCommandIssuer; +import co.aikar.commands.MessageType; import co.aikar.commands.annotation.CommandAlias; import co.aikar.commands.annotation.CommandCompletion; import co.aikar.commands.annotation.CommandPermission; @@ -77,7 +78,11 @@ public class RegenCommand extends MultiverseCoreCommand { issuer.sendInfo(MVCorei18n.REGEN_SUCCESS, "{world}", worldName); }, - "{@@mv-core.regen.prompt}".replace("{world}", worldName) + this.plugin.getMVCommandManager().formatMessage( + issuer, + MessageType.INFO, + MVCorei18n.REGEN_PROMPT, + "{world}", worldName) )); } }