@@ -27,7 +27,6 @@ public class AutoSaveThread extends Thread {
27
27
28
28
protected final Logger log = Logger .getLogger ("Minecraft" );
29
29
private boolean run = true ;
30
- private boolean saveInProgress = false ;
31
30
private AutoSave plugin = null ;
32
31
private AutoSaveConfig config = null ;
33
32
@@ -69,9 +68,7 @@ public void run() {
69
68
try {
70
69
if (!run ) {
71
70
if (config .varDebug ) {
72
- log .info (String .format (
73
- "[%s] Graceful quit of AutoSaveThread" ,
74
- plugin .getDescription ().getName ()));
71
+ log .info (String .format ("[%s] Graceful quit of AutoSaveThread" , plugin .getDescription ().getName ()));
75
72
}
76
73
return ;
77
74
}
@@ -85,16 +82,10 @@ public void run() {
85
82
if (warn ) {
86
83
// Perform warning
87
84
if (config .varDebug ) {
88
- log .info (String
89
- .format ("[%s] Warning Time Reached: %d seconds to go." ,
90
- plugin .getDescription ().getName (),
91
- config .varInterval - i ));
85
+ log .info (String .format ("[%s] Warning Time Reached: %d seconds to go." , plugin .getDescription ().getName (), config .varInterval - i ));
92
86
}
93
- plugin .getServer ().broadcastMessage (
94
- config .messageWarning );
95
- log .info (String .format ("[%s] %s" , plugin
96
- .getDescription ().getName (),
97
- config .messageWarning ));
87
+ plugin .getServer ().broadcastMessage (Generic .parseColor (config .messageWarning ));
88
+ log .info (String .format ("[%s] %s" , plugin .getDescription ().getName (), config .messageWarning ));
98
89
}
99
90
Thread .sleep (1000 );
100
91
} catch (InterruptedException e ) {
0 commit comments