Skip to content

Commit

Permalink
Merge pull request #66 from ShallowAi/patch-1
Browse files Browse the repository at this point in the history
fix: player base not removed
  • Loading branch information
Lagggpixel authored Jun 18, 2024
2 parents 2ff8e1b + b3429fa commit ef28fbb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ public void leaveAttempt(@NotNull Player player, @NotNull IPluginArena arena) {
if(pluginArena == null) {
return;
}
Base base = pluginArena.getBase(player);
if(base != null){
base.removePlayer(player);
}
super.leaveAttempt(player, arena);
if(pluginArena.isDeathPlayer(player)) {
pluginArena.removeDeathPlayer(player);
Expand Down

0 comments on commit ef28fbb

Please sign in to comment.