示例#1
0
 public static void StopRoutine()
 {
     MinecraftServer.StopRoutine();
     FactorioServer.StopRoutine();
     Wrapper.Mode = Wrapper.Modes.Menu;
     Wrapper.WriteLine("FMCBridge stopped successfully!");
 }
 public static void ProcessInput(string InputText)
 {
     //Send it to the wrapper if it's a wrapper command
     if (InputText.StartsWith("wrapper"))
     {
         Wrapper.Command(InputText.Remove(0, 8));
     }
     //If it's a stop command, switch to the stop routine
     else if (InputText == "stop")
     {
         MinecraftServer.StopRoutine();
     }
     else if (InputText == "stop-no-save")
     {
         MinecraftServer.StopRoutine(false);
     }
     //Send it to the Minecraft server
     else
     {
         MinecraftServer.Input.WriteLine(InputText);
     }
 }