Update BauMemberUpdate
This commit is contained in:
@@ -21,7 +21,6 @@ package de.steamwar.bausystem.features.world;
|
|||||||
|
|
||||||
import de.steamwar.bausystem.BauSystem;
|
import de.steamwar.bausystem.BauSystem;
|
||||||
import de.steamwar.bausystem.Permission;
|
import de.steamwar.bausystem.Permission;
|
||||||
import de.steamwar.bausystem.region.GlobalRegion;
|
|
||||||
import de.steamwar.bausystem.region.RegionSystem;
|
import de.steamwar.bausystem.region.RegionSystem;
|
||||||
import de.steamwar.bausystem.utils.BauMemberUpdateEvent;
|
import de.steamwar.bausystem.utils.BauMemberUpdateEvent;
|
||||||
import de.steamwar.bausystem.utils.bossbar.BauSystemBossbar;
|
import de.steamwar.bausystem.utils.bossbar.BauSystemBossbar;
|
||||||
@@ -76,7 +75,7 @@ public class BauMemberUpdate extends PacketHandler implements Listener {
|
|||||||
SPECTATORS.remove(player);
|
SPECTATORS.remove(player);
|
||||||
newBuilder.add(player);
|
newBuilder.add(player);
|
||||||
player.removePotionEffect(PotionEffectType.GLOWING);
|
player.removePotionEffect(PotionEffectType.GLOWING);
|
||||||
BossBarService.instance.remove(player, GlobalRegion.getInstance(), "spectator");
|
BossBarService.instance.remove(player, RegionSystem.INSTANCE.getGlobalRegion(), "spectator");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user