seperate exclusions to config file

This commit is contained in:
Aubri Seebauer committed 2023-04-21 17:46:29 -04:00
1 parent 1506e49f16
commit b67fd1a6c0
2 files changed
+6 -2

No files matched your search

@@ -25,7 +25,7 @@ public class ChatListener implements Listener {
@EventHandler(priority = EventPriority.MONITOR)
public void onBroadcast(BroadcastMessageEvent e) {
boolean matchFound = e.getMessage().equals("§4[ClearLag] §cWarning Ground items will be removed in §760 §cseconds!");
boolean matchFound = e.getMessage().equals(EntityBingo.getInstance().getConfig().getString("startMessage"));
boolean matchFound2 = false;
if(matchFound) {
//start the event, only if previous one is marked as done
@@ -46,7 +46,7 @@ public class ChatListener implements Listener {
return;
} else {
//check for end broadcast
String check = "§6[ClearLag] §aRemoved ";
String check = EntityBingo.getInstance().getConfig().getString("endMessage");
if(e.getMessage().length() >= 23) {
String p1 = e.getMessage().substring(0, 23);
matchFound2 = p1.equals(check);
+4
View File
@@ -0,0 +1,4 @@
#check against this to start
startMessage: '§4[ClearLag] §cWarning Ground items will be removed in §760 §cseconds!'
#check against this to end
endMessage: '§6[ClearLag] §aRemoved '