mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Update ShutdownCommand.java
This commit is contained in:
parent
6713eb1e77
commit
21cc9e9110
@ -25,7 +25,7 @@ public class ShutdownCommand extends Command {
|
|||||||
} else {
|
} else {
|
||||||
if (params.length == 2) {
|
if (params.length == 2) {
|
||||||
try {
|
try {
|
||||||
minutes = Integer.valueOf(params[1]);
|
minutes = Integer.parseInt(params[1]);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
reason = new StringBuilder(params[1]);
|
reason = new StringBuilder(params[1]);
|
||||||
}
|
}
|
||||||
@ -44,7 +44,7 @@ public class ShutdownCommand extends Command {
|
|||||||
}
|
}
|
||||||
RoomTrade.TRADING_ENABLED = false;
|
RoomTrade.TRADING_ENABLED = false;
|
||||||
ShutdownEmulator.timestamp = Emulator.getIntUnixTimestamp() + (60 * minutes);
|
ShutdownEmulator.timestamp = Emulator.getIntUnixTimestamp() + (60 * minutes);
|
||||||
Emulator.getThreading().run(new ShutdownEmulator(message), minutes * 60 * 1000);
|
Emulator.getThreading().run(new ShutdownEmulator(message), (long) minutes * 60 * 1000);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user