Esempio n. 1
0
 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));
   }
 }
Esempio n. 2
0
 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));
   }
 }