Check Citizens plugin disabled in skinpackettracker

This commit is contained in:
fullwall 2016-12-17 12:22:23 +08:00
parent cf5beab4c5
commit e1dda0499c

View File

@ -140,7 +140,7 @@ public class SkinPacketTracker {
}
private void scheduleRemovePacket(final PlayerEntry entry) {
if (isRemoved)
if (isRemoved || !CitizensAPI.hasImplementation() || !CitizensAPI.getPlugin().isEnabled())
return;
entry.removeTask = Bukkit.getScheduler().runTaskLater(CitizensAPI.getPlugin(), new Runnable() {