mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Fixes round 3000
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user