diff --git a/src/com/massivecraft/massivecore/store/SenderEntity.java b/src/com/massivecraft/massivecore/store/SenderEntity.java index c6b8197b..2405c9bd 100644 --- a/src/com/massivecraft/massivecore/store/SenderEntity.java +++ b/src/com/massivecraft/massivecore/store/SenderEntity.java @@ -217,6 +217,13 @@ public abstract class SenderEntity> extends Entity { return MixinPlayed.get().getIp(this.getIdOrThrow()); } + + public String getIpOrThrow() + { + String ip = this.getIp(); + if (ip == null) throw new NullPointerException("ip"); + return ip; + } public boolean isVisible() {