Update ShutdownCommand.java

This commit is contained in:
brenoepic 2022-04-30 23:51:58 -03:00
parent 6713eb1e77
commit 21cc9e9110

View File

@ -25,7 +25,7 @@ public class ShutdownCommand extends Command {
} else {
if (params.length == 2) {
try {
minutes = Integer.valueOf(params[1]);
minutes = Integer.parseInt(params[1]);
} catch (Exception e) {
reason = new StringBuilder(params[1]);
}
@ -44,7 +44,7 @@ public class ShutdownCommand extends Command {
}
RoomTrade.TRADING_ENABLED = false;
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;
}
}