title: Minecraft Chat Message Replacement
body: <p>I am making a permissions plugin, and want to replace the name of a player with their rank tag. For this, I have the following code:</p>
  
  <pre><code>public void playerChat(AsyncPlayerChatEvent e) {
      Player target = e.getPlayer();
  
      String message = e.getMessage().replaceAll(target.getName(), colorize(rFile.getString("players." + target)) + " " + target.getName());
      e.setMessage(message);
  }
  </code></pre>
  
  <p>Whenever I send a message to chat, it appears like it would normally.
  What am I doing wrong here?</p>
  
  <p>Additionally, I am using a config file (cFile) and a ranks.yml file (rFile).</p>