Program: 175445
Project: 175445
Buggy source:
@EventHandler(priority=EventPriority.HIGH) public void onPlayerChat(ChatEvent e){
  if (e.isCancelled())   return;
  if (!(e.getSender() instanceof ProxiedPlayer))   return;
  ProxiedPlayer sender=(ProxiedPlayer)e.getSender();
  String message=e.getMessage();
  BungeeChatAccount accout=BungeecordAccountManager.getAccount(sender).get();
  if (ChatUtils.isCommand(message))   return;
  if (accout.getChannelType() == ChannelType.STAFF)   return;
  if (BungeecordModuleManager.GLOBAL_CHAT_MODULE.getModuleSection().getBoolean("String_Node_Str")) {
    if (MessagesService.getGlobalPredicate().test(accout)) {
      e.setCancelled(!passToClientServer);
      MessagesService.sendGlobalMessage(sender,message);
      return;
    }
  }
  if (BungeecordAccountManager.getAccount(sender).get().getChannelType() == ChannelType.GLOBAL) {
    if (!MessagesService.getGlobalPredicate().test(accout)) {
      MessagesService.sendMessage(sender,Message.NOT_IN_GLOBAL_SERVER.get());
      return;
    }
    e.setCancelled(!passToClientServer);
    MessagesService.sendGlobalMessage(sender,message);
    return;
  }
  Config section=BungeecordModuleManager.GLOBAL_CHAT_MODULE.getModuleSection().atPath("String_Node_Str");
  if (section.getBoolean("String_Node_Str")) {
    String symbol=section.getString("String_Node_Str");
    if (message.startsWith(symbol) && !symbol.equals("String_Node_Str")) {
      if (!MessagesService.getGlobalPredicate().test(accout)) {
        MessagesService.sendMessage(sender,Message.NOT_IN_GLOBAL_SERVER.get());
        return;
      }
      e.setCancelled(!passToClientServer);
      MessagesService.sendGlobalMessage(sender,message.replaceFirst(symbol,"String_Node_Str"));
    }
  }
}

Fixed version (ground truth):
@EventHandler(priority=EventPriority.HIGH) public void onPlayerChat(ChatEvent e){
  if (e.isCancelled())   return;
  if (!(e.getSender() instanceof ProxiedPlayer))   return;
  ProxiedPlayer sender=(ProxiedPlayer)e.getSender();
  String message=e.getMessage();
  BungeeChatAccount accout=BungeecordAccountManager.getAccount(sender).get();
  if (ChatUtils.isCommand(message))   return;
  if (accout.getChannelType() == ChannelType.STAFF)   return;
  if (BungeecordModuleManager.GLOBAL_CHAT_MODULE.getModuleSection().getBoolean("String_Node_Str")) {
    if (MessagesService.getGlobalPredicate().test(accout)) {
      e.setCancelled(!passToClientServer);
      MessagesService.sendGlobalMessage(sender,message);
      return;
    }
  }
  if (BungeecordAccountManager.getAccount(sender).get().getChannelType() == ChannelType.GLOBAL) {
    if (!MessagesService.getGlobalPredicate().test(accout)) {
      MessagesService.sendMessage(sender,Message.NOT_IN_GLOBAL_SERVER.get());
      return;
    }
    e.setCancelled(!passToClientServer);
    MessagesService.sendGlobalMessage(sender,message);
    return;
  }
  Config section=BungeecordModuleManager.GLOBAL_CHAT_MODULE.getModuleSection().getConfig("String_Node_Str");
  if (section.getBoolean("String_Node_Str")) {
    String symbol=section.getString("String_Node_Str");
    if (message.startsWith(symbol) && !symbol.equals("String_Node_Str")) {
      if (!MessagesService.getGlobalPredicate().test(accout)) {
        MessagesService.sendMessage(sender,Message.NOT_IN_GLOBAL_SERVER.get());
        return;
      }
      e.setCancelled(!passToClientServer);
      MessagesService.sendGlobalMessage(sender,message.replaceFirst(symbol,"String_Node_Str"));
    }
  }
}