diff --git a/SimpleChatPlugin/src/main/java/net/draycia/simplechat/channels/impls/SimpleChatChannel.java b/SimpleChatPlugin/src/main/java/net/draycia/simplechat/channels/impls/SimpleChatChannel.java index d938556c..e7892f55 100644 --- a/SimpleChatPlugin/src/main/java/net/draycia/simplechat/channels/impls/SimpleChatChannel.java +++ b/SimpleChatPlugin/src/main/java/net/draycia/simplechat/channels/impls/SimpleChatChannel.java @@ -142,9 +142,7 @@ public class SimpleChatChannel extends ChatChannel { private boolean isUserSpying(ChatUser sender, ChatUser target) { if (!canPlayerSee(sender, target, false)) { - if (target.getChannelSettings(this).isSpying()) { - return true; - } + return target.getChannelSettings(this).isSpying(); } return false; diff --git a/SimpleChatPlugin/src/main/java/net/draycia/simplechat/events/ChannelRegisterEvent.java b/SimpleChatPlugin/src/main/java/net/draycia/simplechat/events/ChannelRegisterEvent.java index bdc1d629..70f3c276 100644 --- a/SimpleChatPlugin/src/main/java/net/draycia/simplechat/events/ChannelRegisterEvent.java +++ b/SimpleChatPlugin/src/main/java/net/draycia/simplechat/events/ChannelRegisterEvent.java @@ -1,7 +1,6 @@ package net.draycia.simplechat.events; import net.draycia.simplechat.channels.ChatChannel; -import net.draycia.simplechat.storage.ChatUser; import net.draycia.simplechat.util.Registry; import org.bukkit.Bukkit; import org.bukkit.event.Event;