34 lines
824 B
Java
34 lines
824 B
Java
package org.mvplugins.multiverse.core.world.reasons;
|
|
|
|
import co.aikar.locales.MessageKey;
|
|
import co.aikar.locales.MessageKeyProvider;
|
|
|
|
import org.mvplugins.multiverse.core.utils.MVCorei18n;
|
|
import org.mvplugins.multiverse.core.utils.result.FailureReason;
|
|
|
|
/**
|
|
* Result of a world removal operation.
|
|
*/
|
|
public enum RemoveFailureReason implements FailureReason {
|
|
/**
|
|
* The world does not exist.
|
|
*/
|
|
WORLD_NON_EXISTENT(MVCorei18n.REMOVEWORLD_WORLDNONEXISTENT),
|
|
|
|
/**
|
|
* The world could not be unloaded.
|
|
*/
|
|
UNLOAD_FAILED(MVCorei18n.GENERIC_FAILURE);
|
|
|
|
private final MessageKeyProvider message;
|
|
|
|
RemoveFailureReason(MessageKeyProvider message) {
|
|
this.message = message;
|
|
}
|
|
|
|
@Override
|
|
public MessageKey getMessageKey() {
|
|
return message.getMessageKey();
|
|
}
|
|
}
|