mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
cleanup
This commit is contained in:
parent
f89c732a6b
commit
ca0eea33f6
@ -21,6 +21,7 @@ import java.sql.ResultSet;
|
|||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Collections;
|
||||||
|
|
||||||
public class Bot implements Runnable {
|
public class Bot implements Runnable {
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(Bot.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(Bot.class);
|
||||||
@ -110,7 +111,7 @@ public class Bot implements Runnable {
|
|||||||
this.chatRandom = false;
|
this.chatRandom = false;
|
||||||
this.chatDelay = 10;
|
this.chatDelay = 10;
|
||||||
this.chatTimeOut = Emulator.getIntUnixTimestamp() + this.chatDelay;
|
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.type = bot.getType();
|
||||||
this.effect = bot.getEffect();
|
this.effect = bot.getEffect();
|
||||||
this.bubble = bot.getBubbleId();
|
this.bubble = bot.getBubbleId();
|
||||||
@ -118,7 +119,7 @@ public class Bot implements Runnable {
|
|||||||
this.needsUpdate = false;
|
this.needsUpdate = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void initialise() {
|
public void initialise() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ import java.text.SimpleDateFormat;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
public class VisitorBot extends Bot {
|
public class VisitorBot extends Bot {
|
||||||
private static SimpleDateFormat DATE_FORMAT;
|
private SimpleDateFormat DATE_FORMAT;
|
||||||
private boolean showedLog = false;
|
private boolean showedLog = false;
|
||||||
private THashSet<ModToolRoomVisit> visits = new THashSet<>(3);
|
private THashSet<ModToolRoomVisit> visits = new THashSet<>(3);
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ public class VisitorBot extends Bot {
|
|||||||
super(bot);
|
super(bot);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void initialise() {
|
public void initialise() {
|
||||||
DATE_FORMAT = new SimpleDateFormat(Emulator.getConfig().getValue("bots.visitor.dateformat"));
|
DATE_FORMAT = new SimpleDateFormat(Emulator.getConfig().getValue("bots.visitor.dateformat"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user