diff --git a/SimpleChatPlugin/src/main/java/net/draycia/simplechat/listeners/EmptyChatHandler.java b/SimpleChatPlugin/src/main/java/net/draycia/simplechat/listeners/EmptyChatHandler.java index fc4018d5..3ce163d4 100644 --- a/SimpleChatPlugin/src/main/java/net/draycia/simplechat/listeners/EmptyChatHandler.java +++ b/SimpleChatPlugin/src/main/java/net/draycia/simplechat/listeners/EmptyChatHandler.java @@ -23,7 +23,7 @@ public class EmptyChatHandler implements Listener { if (event.getRecipients().size() == 1 && event.getUser().equals(event.getRecipients().get(0))) { String message = simpleChat.getConfig().getString("language.empty-channel"); - if (message == null || message.isEmpty()) { + if (message == null || message.isEmpty() || message.equalsIgnoreCase("NONE")) { return; } diff --git a/SimpleChatPlugin/src/main/resources/config.yml b/SimpleChatPlugin/src/main/resources/config.yml index 850f79a7..01e88e82 100644 --- a/SimpleChatPlugin/src/main/resources/config.yml +++ b/SimpleChatPlugin/src/main/resources/config.yml @@ -58,15 +58,15 @@ formatting: type: 'MiniMessage' language: - # The following messages are only compatible with MiniMessage + # The following messages are only compatible with MiniMessage/MineDown reloaded: 'Chat config has been reloaded!' message-to-other: '[Me -> ] ' message-from-other: '[ -> Me] ' spy-whispers: 'Spy [ -> ] ' no-reply-target: 'You have no one to reply to!' - empty-channel: 'Nobody is around to hear you!' # + empty-channel: 'NONE' #, set to "NONE" to disable - # The following messages are compatible with PlaceholderAPI and MiniMessage + # The following messages are compatible with PlaceholderAPI and MiniMessage/MineDown me: '*%player_displayname%
*
' ignoring-user: 'You are now ignoring !' not-ignoring-user: 'You are no longer ignoring !' @@ -81,7 +81,7 @@ language: server-name: 'Server' item-link-placeholders: - - '[item]' # cursed placeholder do not use + - '[item]' - '%item%' spy-prefix: '[SPY] '