mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2026-04-15 07:44:11 +02:00
20 lines
758 B
C#
20 lines
758 B
C#
namespace Phantom.Common.Data.Replies;
|
|
|
|
public enum ConfigureInstanceResult : byte {
|
|
Success = 0,
|
|
CouldNotCreateInstanceDirectory = 1,
|
|
MinecraftVersionNotFound = 2,
|
|
UnknownError = 255,
|
|
}
|
|
|
|
public static class ConfigureInstanceResultExtensions {
|
|
public static string ToSentence(this ConfigureInstanceResult reason) {
|
|
return reason switch {
|
|
ConfigureInstanceResult.Success => "Success.",
|
|
ConfigureInstanceResult.CouldNotCreateInstanceDirectory => "Could not create instance directory.",
|
|
ConfigureInstanceResult.MinecraftVersionNotFound => "Minecraft version not found.",
|
|
_ => "Unknown error.",
|
|
};
|
|
}
|
|
}
|