Add missing config check to party leave message

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2019-02-01 08:23:13 +01:00
parent 77b0f10b92
commit 874246bc55

View File

@@ -174,6 +174,11 @@ public class PartyPlugin extends Plugin implements KeyListener
{
party.changeParty(null);
if (!config.messages())
{
return;
}
final String leaveMessage = new ChatMessageBuilder()
.append(ChatColorType.HIGHLIGHT)
.append("You have left the party.")