mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-25 09:41:23 +01:00
Revert delete command changes
This commit is contained in:
parent
5fca5b18b8
commit
02b02530bd
@ -47,12 +47,15 @@ public class DeleteCommand extends MultiverseCommand {
|
|||||||
this.commandManager.getCommandQueueManager().addToQueue(new QueuedCommand(
|
this.commandManager.getCommandQueueManager().addToQueue(new QueuedCommand(
|
||||||
issuer.getIssuer(),
|
issuer.getIssuer(),
|
||||||
() -> {
|
() -> {
|
||||||
issuer.sendInfo(MVCorei18n.DELETE_DELETING, "{world}", worldName);
|
issuer.sendInfo(MVCorei18n.DELETE_DELETING,
|
||||||
|
"{world}", worldName);
|
||||||
if (!this.worldManager.deleteWorld(worldName)) {
|
if (!this.worldManager.deleteWorld(worldName)) {
|
||||||
issuer.sendError(MVCorei18n.DELETE_FAILED, "{world}", worldName);
|
issuer.sendError(MVCorei18n.DELETE_FAILED,
|
||||||
|
"{world}", worldName);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
issuer.sendInfo(MVCorei18n.DELETE_SUCCESS, "{world}", worldName);
|
issuer.sendInfo(MVCorei18n.DELETE_SUCCESS,
|
||||||
|
"{world}", worldName);
|
||||||
},
|
},
|
||||||
this.commandManager.formatMessage(
|
this.commandManager.formatMessage(
|
||||||
issuer,
|
issuer,
|
||||||
|
Loading…
Reference in New Issue
Block a user