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