turt2live

Untitled

Nov 20th, 2012
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. public void onChat(AsyncPlayerChatEvent event){
  2.     String prefix = ChatColor.removeColorCodes(String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage()).replace(event.getMessage(), ""));
  3.     // You may have to use \\%s, i can't remember
  4. }
Advertisement
Add Comment
Please, Sign In to add comment