mirror of
https://github.com/darksaid98/EntityBingo.git
synced 2026-12-03 08:28:51 +00:00
seperate exclusions to config file
This commit is contained in:
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)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void onBroadcast(BroadcastMessageEvent e) {
|
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;
|
boolean matchFound2 = false;
|
||||||
if(matchFound) {
|
if(matchFound) {
|
||||||
//start the event, only if previous one is marked as done
|
//start the event, only if previous one is marked as done
|
||||||
@@ -46,7 +46,7 @@ public class ChatListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
//check for end broadcast
|
//check for end broadcast
|
||||||
String check = "§6[ClearLag] §aRemoved ";
|
String check = EntityBingo.getInstance().getConfig().getString("endMessage");
|
||||||
if(e.getMessage().length() >= 23) {
|
if(e.getMessage().length() >= 23) {
|
||||||
String p1 = e.getMessage().substring(0, 23);
|
String p1 = e.getMessage().substring(0, 23);
|
||||||
matchFound2 = p1.equals(check);
|
matchFound2 = p1.equals(check);
|
||||||
|
|||||||
@@ -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 '
|
||||||
Reference in new issue
Block a user