mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2026-02-25 11:08:17 +01:00
17 lines
568 B
C#
17 lines
568 B
C#
namespace Phantom.Common.Data.Replies;
|
|
|
|
public enum ConfigureInstanceResult : byte {
|
|
Success = 0,
|
|
CouldNotCreateInstanceFolder = 1,
|
|
}
|
|
|
|
public static class ConfigureInstanceResultExtensions {
|
|
public static string ToSentence(this ConfigureInstanceResult reason) {
|
|
return reason switch {
|
|
ConfigureInstanceResult.Success => "Success.",
|
|
ConfigureInstanceResult.CouldNotCreateInstanceFolder => "Could not create instance folder.",
|
|
_ => "Unknown error.",
|
|
};
|
|
}
|
|
}
|