Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. }
  2. public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
  3. if(commandLabel.equalsIgnoreCase("message")) {
  4. sender.sendMessage(this.getConfig().getString("Message").replaceAll("&0", ChatColor.BLACK + "").replaceAll("&1", ChatColor.DARK_BLUE + "").replaceAll("&2", ChatColor.DARK_GREEN + "").replaceAll("&3", ChatColor.DARK_AQUA + "").replaceAll("&4", ChatColor.DARK_RED + "").replaceAll("&5", ChatColor.DARK_PURPLE + "").replaceAll("&6", ChatColor.GOLD + "").replaceAll("&7", ChatColor.GRAY + "").replaceAll("&8", ChatColor.DARK_GRAY + "").replaceAll("&9", ChatColor.BLUE + "").replaceAll("&a", ChatColor.GREEN + "").replaceAll("&b", ChatColor.AQUA + "").replaceAll("&c", ChatColor.RED + "").replaceAll("&d", ChatColor.LIGHT_PURPLE + "").replaceAll("&e", ChatColor.YELLOW + "").replaceAll("&f", ChatColor.WHITE + "").replaceAll("&l", ChatColor.BOLD + "").replaceAll("&o", ChatColor.ITALIC + ""));
  5. }
  6. return false;
  7.  
  8.  
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement