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