mirror of
https://github.com/darksaid98/EntityBingo.git
synced 2026-12-01 15:58:46 +00:00
fixup onDisable
This commit is contained in:
1 parent
b67fd1a6c0
commit
dfed109b07
1 file changed
+5
-3
@@ -51,9 +51,11 @@ public final class EntityBingo extends JavaPlugin {
|
||||
@Override
|
||||
public void onDisable() {
|
||||
if(currrentEvent != null) {
|
||||
Bukkit.broadcastMessage(Helper.chatLabel() + "Server Shutting down, clearing Bingo Event without results!");
|
||||
currrentEvent.setDone();
|
||||
currrentEvent = null;
|
||||
if(!currrentEvent.isDone()) {
|
||||
Bukkit.broadcastMessage(Helper.chatLabel() + "Server Shutting down, clearing Bingo Event without results!");
|
||||
currrentEvent.setDone();
|
||||
currrentEvent = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user