From 21cc9e9110e3025e672cc6c5fce16c121aceb3c9 Mon Sep 17 00:00:00 2001 From: brenoepic <59066707+brenoepics@users.noreply.github.com> Date: Sat, 30 Apr 2022 23:51:58 -0300 Subject: [PATCH] Update ShutdownCommand.java --- .../com/eu/habbo/habbohotel/commands/ShutdownCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/commands/ShutdownCommand.java b/src/main/java/com/eu/habbo/habbohotel/commands/ShutdownCommand.java index 25194479..2aab18d3 100644 --- a/src/main/java/com/eu/habbo/habbohotel/commands/ShutdownCommand.java +++ b/src/main/java/com/eu/habbo/habbohotel/commands/ShutdownCommand.java @@ -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; } }