</BUG>
String server = player.getServer().getInfo().getName();
ProxyServer.getInstance().getPluginManager().callEvent(new StaffChatEvent(server, sender, event.getMessage()));
event.setCancelled(true);
<BUG>} else if (player.hasPermission(Permissions.General.CHAT) && pD.isGlobalChat(uuid)) {
</BUG>
String server = player.getServer().getInfo().getName();
ProxyServer.getInstance().getPluginManager().callEvent(new GlobalChatEvent(server, sender, event.getMessage()));
event.setCancelled(true);
}

int upperC = msg.replaceAll("[^A-Z]", "").length();
if (upperC * 100 / msg.length() >= BungeeEssentials.getInstance().getConfig().getDouble("capspam.percent", 50))
event.setMessage(event.getMessage().toLowerCase());
}
if (!event.isCancelled() && !event.isCommand()) {
if (Permissions.hasPerm(player, Permissions.Admin.CHAT) && pD.isStaffChat(uuid)) {
String server = player.getServer().getInfo().getName();
ProxyServer.getInstance().getPluginManager().callEvent(new StaffChatEvent(server, sender, event.getMessage()));
event.setCancelled(true);
} else if (Permissions.hasPerm(player, Permissions.General.CHAT) && pD.isGlobalChat(uuid)) {
String server = player.getServer().getInfo().getName();
ProxyServer.getInstance().getPluginManager().callEvent(new GlobalChatEvent(server, sender, event.getMessage()));
event.setCancelled(true);
