Extra plugin disabled check

This commit is contained in:
fullwall 2021-09-18 15:35:13 +08:00
parent cffb0519e0
commit 004c46ab76

View File

@ -320,6 +320,8 @@ public class CitizensNavigator implements Navigator, Runnable {
velocity.setX(0).setY(0).setZ(0);
npc.getEntity().setVelocity(velocity);
}
if (!SUPPORT_CHUNK_TICKETS || !CitizensAPI.hasImplementation() || !CitizensAPI.getPlugin().isEnabled())
return;
Bukkit.getScheduler().scheduleSyncDelayedTask(CitizensAPI.getPlugin(), new Runnable() {
@Override
public void run() {