Source:
<code>public void chat(final String text, final boolean async) { if (text.startsWith("/")) { server.getLogger().info(getName() + " issued command: " + text); try { PlayerCommandPreprocessEvent event = EventFactory.onPlayerCommand(this, text); if (event.isCancelled()) { return; } getServer().dispatchCommand(event.getPlayer(), event.getMessage().substring(1)); } catch (Exception ex) { sendMessage(ChatColor.RED + "An internal error occured while executing your command."); getServer().getLogger().log(Level.SEVERE, "Exception while executing command: " + text, ex); } } else { Runnable task = new Runnable() { @Override public void run() { final AsyncPlayerChatEvent event = EventFactory.onAsyncPlayerChat(async, GlowPlayer.this, text); if (event.isCancelled()) { return; } if (PlayerChatEvent.getHandlerList().getRegisteredListeners().length > 0) { PlayerChatEvent event1 = EventFactory.callEvent(new PlayerChatEvent(GlowPlayer.this, event.getMessage(), event.getFormat(), event.getRecipients())); if (event1.isCancelled()) { return; } event.setFormat(event1.getFormat()); event.setMessage(event1.getMessage()); event.getRecipients().clear(); event.getRecipients().addAll(event1.getRecipients()); } String message = String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage()); getServer().getLogger().info(message); for (Player recipient : event.getRecipients()) { recipient.sendMessage(message); } } }; <START> if (async) <END> server.getScheduler().runTaskImmediateAsynchronously(task); else task.run(); } }</code><technical_language>of coding standards, this kinda strange. In opinion, brackets consume 2 lines</technical_language>

Target:
public void chat(final String text, final boolean async) { if (text.startsWith("/")) { server.getLogger().info(getName() + " issued command: " + text); try { PlayerCommandPreprocessEvent event = EventFactory.onPlayerCommand(this, text); if (event.isCancelled()) { return; } getServer().dispatchCommand(event.getPlayer(), event.getMessage().substring(1)); } catch (Exception ex) { sendMessage(ChatColor.RED + "An internal error occured while executing your command."); getServer().getLogger().log(Level.SEVERE, "Exception while executing command: " + text, ex); } } else { Runnable task = new Runnable() { @Override public void run() { final AsyncPlayerChatEvent event = EventFactory.onAsyncPlayerChat(async, GlowPlayer.this, text); if (event.isCancelled()) { return; } if (PlayerChatEvent.getHandlerList().getRegisteredListeners().length > 0) { PlayerChatEvent event1 = EventFactory.callEvent(new PlayerChatEvent(GlowPlayer.this, event.getMessage(), event.getFormat(), event.getRecipients())); if (event1.isCancelled()) { return; } event.setFormat(event1.getFormat()); event.setMessage(event1.getMessage()); event.getRecipients().clear(); event.getRecipients().addAll(event1.getRecipients()); } String message = String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage()); getServer().getLogger().info(message); for (Player recipient : event.getRecipients()) { recipient.sendMessage(message); } } }; if (async) { server.getScheduler().runTaskImmediateAsynchronously(task); } else { task.run(); } } }