From fefd5f0c1be81c8b3b3e5a44bad07a94c7070bb5 Mon Sep 17 00:00:00 2001 From: ucchy Date: Wed, 29 Jul 2020 00:13:14 +0900 Subject: [PATCH] LunaChat v3.0.8 : Fixed issue #194 --- pom.xml | 2 +- .../java/com/github/ucchyocean/lc3/command/HideCommand.java | 2 +- .../java/com/github/ucchyocean/lc3/command/UnhideCommand.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; }