From ca0eea33f63a652aabcdab3f3f569472d24a37b0 Mon Sep 17 00:00:00 2001 From: brenoepic <59066707+brenoepics@users.noreply.github.com> Date: Fri, 29 Apr 2022 22:15:22 -0300 Subject: [PATCH] cleanup --- src/main/java/com/eu/habbo/habbohotel/bots/Bot.java | 5 +++-- src/main/java/com/eu/habbo/habbohotel/bots/VisitorBot.java | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/bots/Bot.java b/src/main/java/com/eu/habbo/habbohotel/bots/Bot.java index 903f28eb..169e7e65 100644 --- a/src/main/java/com/eu/habbo/habbohotel/bots/Bot.java +++ b/src/main/java/com/eu/habbo/habbohotel/bots/Bot.java @@ -21,6 +21,7 @@ import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.Arrays; +import java.util.Collections; public class Bot implements Runnable { private static final Logger LOGGER = LoggerFactory.getLogger(Bot.class); @@ -110,7 +111,7 @@ public class Bot implements Runnable { this.chatRandom = false; this.chatDelay = 10; this.chatTimeOut = Emulator.getIntUnixTimestamp() + this.chatDelay; - this.chatLines = new ArrayList<>(Arrays.asList("Default Message :D")); + this.chatLines = new ArrayList<>(Collections.singletonList("Default Message :D")); this.type = bot.getType(); this.effect = bot.getEffect(); this.bubble = bot.getBubbleId(); @@ -118,7 +119,7 @@ public class Bot implements Runnable { this.needsUpdate = false; } - public static void initialise() { + public void initialise() { } diff --git a/src/main/java/com/eu/habbo/habbohotel/bots/VisitorBot.java b/src/main/java/com/eu/habbo/habbohotel/bots/VisitorBot.java index dd6f0849..a97178d1 100644 --- a/src/main/java/com/eu/habbo/habbohotel/bots/VisitorBot.java +++ b/src/main/java/com/eu/habbo/habbohotel/bots/VisitorBot.java @@ -12,7 +12,7 @@ import java.text.SimpleDateFormat; import java.util.Date; public class VisitorBot extends Bot { - private static SimpleDateFormat DATE_FORMAT; + private SimpleDateFormat DATE_FORMAT; private boolean showedLog = false; private THashSet visits = new THashSet<>(3); @@ -24,7 +24,7 @@ public class VisitorBot extends Bot { super(bot); } - public static void initialise() { + public void initialise() { DATE_FORMAT = new SimpleDateFormat(Emulator.getConfig().getValue("bots.visitor.dateformat")); }