mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Don't send spy messages to all players...
This commit is contained in:
1 parent
a39b160b34
commit
b5365e9b78
1 file changed
+4
@@ -273,6 +273,10 @@ public class CarbonChatUser implements ChatUser, ForwardingAudience {
|
||||
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||
ChatUser user = carbonChat.getUserService().wrap(player);
|
||||
|
||||
if (!user.isSpyingWhispers()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (user.getUUID().equals(sender.getUUID()) || user.getUUID().equals(getUUID())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user