Skip to content

Commit

Permalink
Fix CME on /stop while using tpsbar
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyGalbreath committed Jul 16, 2021
1 parent 222262b commit 50a55b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/server/0142-Implement-TPSBar.patch
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ index 0000000000000000000000000000000000000000..5ed9d779fbdd9da1010f5f31ceec6b46
+}
diff --git a/src/main/java/net/pl3x/purpur/task/TPSBarTask.java b/src/main/java/net/pl3x/purpur/task/TPSBarTask.java
new file mode 100644
index 0000000000000000000000000000000000000000..8d3823e0be0cab31a906ec30f0a16fe11de86f25
index 0000000000000000000000000000000000000000..5d309648df8057ceee72a66856f74eeac4c632cc
--- /dev/null
+++ b/src/main/java/net/pl3x/purpur/task/TPSBarTask.java
@@ -0,0 +1,201 @@
Expand Down Expand Up @@ -327,7 +327,7 @@ index 0000000000000000000000000000000000000000..8d3823e0be0cab31a906ec30f0a16fe1
+ @Override
+ public void cancel() {
+ super.cancel();
+ this.bossbars.keySet().forEach(uuid -> {
+ new HashSet<>(this.bossbars.keySet()).forEach(uuid -> {
+ Player player = Bukkit.getPlayer(uuid);
+ if (player != null) {
+ removePlayer(player);
Expand Down

0 comments on commit 50a55b5

Please sign in to comment.