diff --git a/pom.xml b/pom.xml index 410d112..7293590 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 com.github.ucchyocean LunaChat - 3.0.7 + 3.0.8 A powerfull chat channel plugin with IME (Kana-Kanji conversion) support https://github.com/ucchyocean/LunaChat diff --git a/src/main/java/com/github/ucchyocean/lc3/command/HideCommand.java b/src/main/java/com/github/ucchyocean/lc3/command/HideCommand.java index 7fcd0b9..e40d4fa 100644 --- a/src/main/java/com/github/ucchyocean/lc3/command/HideCommand.java +++ b/src/main/java/com/github/ucchyocean/lc3/command/HideCommand.java @@ -116,7 +116,7 @@ public class HideCommand extends LunaChatSubCommand { Channel channel = api.getChannel(cname); if ( !isPlayerCommand && channel != null ) { isChannelCommand = true; - } else if ( Utility.existsOfflinePlayer(cname) ) { + } else if ( !Utility.existsOfflinePlayer(cname) ) { sender.sendMessage(Messages.errmsgNotExistChannelAndPlayer()); return true; } diff --git a/src/main/java/com/github/ucchyocean/lc3/command/UnhideCommand.java b/src/main/java/com/github/ucchyocean/lc3/command/UnhideCommand.java index 46112a6..aadd954 100644 --- a/src/main/java/com/github/ucchyocean/lc3/command/UnhideCommand.java +++ b/src/main/java/com/github/ucchyocean/lc3/command/UnhideCommand.java @@ -106,7 +106,7 @@ public class UnhideCommand extends LunaChatSubCommand { Channel channel = api.getChannel(cname); if ( !isPlayerCommand && channel != null ) { isChannelCommand = true; - } else if ( Utility.existsOfflinePlayer(cname) ) { + } else if ( !Utility.existsOfflinePlayer(cname) ) { sender.sendMessage(Messages.errmsgNotExistChannelAndPlayer()); return true; }