i18n: fix prompt message mappings

This commit is contained in:
Lildirt 2023-03-03 11:21:10 -05:00
parent 3bd6712f0e
commit 10c910f00f
2 changed files with 12 additions and 2 deletions

View File

@ -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)
));
}
}

View File

@ -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)
));
}
}