/restart doesn't work for mono.. yet
This commit is contained in:
parent
7855696f88
commit
d6f0c0ecf5
1 changed files with 5 additions and 3 deletions
|
|
@ -1007,7 +1007,9 @@ namespace TShockAPI
|
||||||
//Added restart command
|
//Added restart command
|
||||||
private static void Restart(CommandArgs args)
|
private static void Restart(CommandArgs args)
|
||||||
{
|
{
|
||||||
|
if (Main.runningMono){
|
||||||
|
Log.ConsoleInfo("Sorry, this command has not yet been implemented in Mono");
|
||||||
|
}else{
|
||||||
if (TShock.Config.ServerSideInventory)
|
if (TShock.Config.ServerSideInventory)
|
||||||
{
|
{
|
||||||
foreach (TSPlayer player in TShock.Players)
|
foreach (TSPlayer player in TShock.Players)
|
||||||
|
|
@ -1024,7 +1026,7 @@ namespace TShockAPI
|
||||||
Netplay.disconnect = true;
|
Netplay.disconnect = true;
|
||||||
System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
|
System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
|
||||||
Environment.Exit(0);
|
Environment.Exit(0);
|
||||||
}
|
}}
|
||||||
|
|
||||||
private static void OffNoSave(CommandArgs args)
|
private static void OffNoSave(CommandArgs args)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue