Log normal chat all the time (#4)
parent
2f0f38b206
commit
5f5c78143e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue