mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-22 08:11:45 +01:00
i18n: fix prompt message mappings
This commit is contained in:
parent
3bd6712f0e
commit
10c910f00f
@ -1,6 +1,7 @@
|
|||||||
package com.onarandombox.MultiverseCore.commands;
|
package com.onarandombox.MultiverseCore.commands;
|
||||||
|
|
||||||
import co.aikar.commands.BukkitCommandIssuer;
|
import co.aikar.commands.BukkitCommandIssuer;
|
||||||
|
import co.aikar.commands.MessageType;
|
||||||
import co.aikar.commands.annotation.CommandAlias;
|
import co.aikar.commands.annotation.CommandAlias;
|
||||||
import co.aikar.commands.annotation.CommandCompletion;
|
import co.aikar.commands.annotation.CommandCompletion;
|
||||||
import co.aikar.commands.annotation.CommandPermission;
|
import co.aikar.commands.annotation.CommandPermission;
|
||||||
@ -48,7 +49,11 @@ public class DeleteCommand extends MultiverseCoreCommand {
|
|||||||
issuer.sendInfo(MVCorei18n.DELETE_SUCCESS,
|
issuer.sendInfo(MVCorei18n.DELETE_SUCCESS,
|
||||||
"{world}", worldName);
|
"{world}", worldName);
|
||||||
},
|
},
|
||||||
"{@@mv-core.delete.prompt}".replace("{world}", worldName)
|
this.plugin.getMVCommandManager().formatMessage(
|
||||||
|
issuer,
|
||||||
|
MessageType.INFO,
|
||||||
|
MVCorei18n.DELETE_PROMPT,
|
||||||
|
"{world}", worldName)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ import java.util.Collections;
|
|||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
import co.aikar.commands.BukkitCommandIssuer;
|
import co.aikar.commands.BukkitCommandIssuer;
|
||||||
|
import co.aikar.commands.MessageType;
|
||||||
import co.aikar.commands.annotation.CommandAlias;
|
import co.aikar.commands.annotation.CommandAlias;
|
||||||
import co.aikar.commands.annotation.CommandCompletion;
|
import co.aikar.commands.annotation.CommandCompletion;
|
||||||
import co.aikar.commands.annotation.CommandPermission;
|
import co.aikar.commands.annotation.CommandPermission;
|
||||||
@ -77,7 +78,11 @@ public class RegenCommand extends MultiverseCoreCommand {
|
|||||||
issuer.sendInfo(MVCorei18n.REGEN_SUCCESS,
|
issuer.sendInfo(MVCorei18n.REGEN_SUCCESS,
|
||||||
"{world}", worldName);
|
"{world}", worldName);
|
||||||
},
|
},
|
||||||
"{@@mv-core.regen.prompt}".replace("{world}", worldName)
|
this.plugin.getMVCommandManager().formatMessage(
|
||||||
|
issuer,
|
||||||
|
MessageType.INFO,
|
||||||
|
MVCorei18n.REGEN_PROMPT,
|
||||||
|
"{world}", worldName)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user