Fixes round 3000

This commit is contained in:
Draycia committed 2020-07-02 11:48:44 -07:00
1 parent 58477c0b6a
commit 569cd78748
15 files changed
+583 -54

No files matched your search

@@ -258,14 +258,14 @@ public class SimpleChatChannel extends ChatChannel {
return false;
}
if (sender instanceof Player) {
if (getDistance() > 0 && targetPlayer.getLocation().distance(((Player)sender).getLocation()) > getDistance()) {
if (sender.isOnline()) {
if (getDistance() > 0 && targetPlayer.getLocation().distance(sender.asPlayer().getLocation()) > getDistance()) {
return false;
}
}
if (isIgnorable() && sender != null) {
if (target.isIgnoringUser(sender.getUUID()) && !targetPlayer.hasPermission("simplechat.ignoreexempt")) {
if (isIgnorable()) {
if (target.isIgnoringUser(sender) && !targetPlayer.hasPermission("simplechat.ignoreexempt")) {
return false;
}