mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2025-01-20 06:41:20 +01:00
Fix error when disabling plugin because of other error
This commit is contained in:
parent
14541eb25d
commit
2cf789c8f2
@ -173,10 +173,14 @@ public class HolographicDisplays extends FCommonsPlugin {
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
lineTrackerManager.clearTrackedPlayersAndSendPackets();
|
||||
if (lineTrackerManager != null) {
|
||||
lineTrackerManager.clearTrackedPlayersAndSendPackets();
|
||||
}
|
||||
|
||||
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||
nmsManager.uninjectPacketListener(player);
|
||||
if (nmsManager != null) {
|
||||
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||
nmsManager.uninjectPacketListener(player);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user