mirror of
https://github.com/darksaid98/EntityBingo.git
synced 2026-12-03 16:38:51 +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
|
@Override
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
if(currrentEvent != null) {
|
if(currrentEvent != null) {
|
||||||
Bukkit.broadcastMessage(Helper.chatLabel() + "Server Shutting down, clearing Bingo Event without results!");
|
if(!currrentEvent.isDone()) {
|
||||||
currrentEvent.setDone();
|
Bukkit.broadcastMessage(Helper.chatLabel() + "Server Shutting down, clearing Bingo Event without results!");
|
||||||
currrentEvent = null;
|
currrentEvent.setDone();
|
||||||
|
currrentEvent = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user