Restart even if restart script is not found
Dieser Commit ist enthalten in:
Ursprung
51c0ac53a8
Commit
a3978b527d
@ -1,4 +1,4 @@
|
|||||||
From 51ae704ad3290541373ec51570d48c9e66743f5c Mon Sep 17 00:00:00 2001
|
From 8c47249526c029b0fd635fe1dc4402143b0b6eb3 Mon Sep 17 00:00:00 2001
|
||||||
From: md_5 <md_5@live.com.au>
|
From: md_5 <md_5@live.com.au>
|
||||||
Date: Sat, 23 Feb 2013 12:33:20 +1100
|
Date: Sat, 23 Feb 2013 12:33:20 +1100
|
||||||
Subject: [PATCH] Watchdog Thread.
|
Subject: [PATCH] Watchdog Thread.
|
||||||
@ -34,7 +34,7 @@ index aa6a14a..6005fac 100644
|
|||||||
this.isStopped = true;
|
this.isStopped = true;
|
||||||
} catch (Throwable throwable1) {
|
} catch (Throwable throwable1) {
|
||||||
diff --git a/src/main/java/org/bukkit/craftbukkit/Spigot.java b/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
diff --git a/src/main/java/org/bukkit/craftbukkit/Spigot.java b/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
||||||
index 83018b0..931f6fd 100644
|
index e083480..6713281 100644
|
||||||
--- a/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
--- a/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
||||||
+++ b/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
+++ b/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
||||||
@@ -1,5 +1,6 @@
|
@@ -1,5 +1,6 @@
|
||||||
@ -145,10 +145,10 @@ index 83018b0..931f6fd 100644
|
|||||||
+
|
+
|
||||||
+ shutdownHook.setDaemon(true);
|
+ shutdownHook.setDaemon(true);
|
||||||
+ Runtime.getRuntime().addShutdownHook(shutdownHook);
|
+ Runtime.getRuntime().addShutdownHook(shutdownHook);
|
||||||
+ System.exit(0);
|
|
||||||
+ } else {
|
+ } else {
|
||||||
+ System.out.println("Startup script '" + startupScript + "' does not exist!");
|
+ System.out.println("Startup script '" + startupScript + "' does not exist! Stopping server.");
|
||||||
+ }
|
+ }
|
||||||
|
+ System.exit(0);
|
||||||
+ } catch (Exception ex) {
|
+ } catch (Exception ex) {
|
||||||
+ ex.printStackTrace();
|
+ ex.printStackTrace();
|
||||||
+ }
|
+ }
|
||||||
@ -297,5 +297,5 @@ index e568bf6..7c18391 100644
|
|||||||
default:
|
default:
|
||||||
growth-chunks-per-tick: 650
|
growth-chunks-per-tick: 650
|
||||||
--
|
--
|
||||||
1.8.1.1
|
1.8.1-rc2
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren