Log normal chat all the time (#4)

master
Etzelia 2019-04-23 22:14:41 +02:00 committed by Gitea
parent 2f0f38b206
commit 5f5c78143e
1 changed files with 6 additions and 4 deletions

View File

@ -38,13 +38,15 @@ public class AsyncPlayerChatListener implements Listener {
Player sender = event.getPlayer();
String chat = event.getMessage();
if (!sender.hasPermission("deluxegroups.group.chat")) {
return;
}
DynmapAPI dynmap = DeluxeGroups.getDynmap();
IMinecraftManager minecraftManager = DeluxeGroups.getMinecraftManager();
if (!sender.hasPermission("deluxegroups.group.chat")) {
// Still log normal chat if we are overriding dynmap or MCM
normalChat(event, sender, chat, dynmap, minecraftManager);
return;
}
if (DeluxeGroups.getDatabase().inGroup(sender.getUniqueId().toString())) {
boolean groupChat = false;