mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Fixing an NPE related to Spout players.
This commit is contained in:
parent
c589c5556b
commit
fdd6c0a0d8
@ -7,6 +7,7 @@ import com.gmail.nossr50.datatypes.PlayerProfile;
|
|||||||
import com.gmail.nossr50.skills.utilities.AbilityType;
|
import com.gmail.nossr50.skills.utilities.AbilityType;
|
||||||
import com.gmail.nossr50.skills.utilities.SkillTools;
|
import com.gmail.nossr50.skills.utilities.SkillTools;
|
||||||
import com.gmail.nossr50.skills.utilities.SkillType;
|
import com.gmail.nossr50.skills.utilities.SkillType;
|
||||||
|
import com.gmail.nossr50.util.Misc;
|
||||||
import com.gmail.nossr50.util.Users;
|
import com.gmail.nossr50.util.Users;
|
||||||
|
|
||||||
public class SkillMonitor implements Runnable {
|
public class SkillMonitor implements Runnable {
|
||||||
@ -15,6 +16,10 @@ public class SkillMonitor implements Runnable {
|
|||||||
long curTime = System.currentTimeMillis();
|
long curTime = System.currentTimeMillis();
|
||||||
|
|
||||||
for (Player player : mcMMO.p.getServer().getOnlinePlayers()) {
|
for (Player player : mcMMO.p.getServer().getOnlinePlayers()) {
|
||||||
|
if (Misc.isNPCEntity(player)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
PlayerProfile profile = Users.getPlayer(player).getProfile();
|
PlayerProfile profile = Users.getPlayer(player).getProfile();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user