public static void sendFMessage(Arena arena, ConfigC location, Boolean tag, String... vars) { for (Player player : arena.playersInArena) { String pMessage = location .config .getFile() .get(location.getLocation()) .toString() .replaceAll("%player%", player.getName()); player.sendMessage(MessageM.replaceAll(CType.TAG(tag) + pMessage, vars)); } }
public static void sendMessage(Arena arena, String message, Boolean tag, String... vars) { for (Player player : arena.playersInArena) { String pMessage = message.replaceAll("%player%", player.getName()); player.sendMessage(MessageM.replaceAll(CType.TAG(tag) + pMessage, vars)); } }