Пример #1
0
 public static void SendCritMessageToPlayer(Player player, double critDamageMultifier) {
   String message =
       BetterLeveling.ConfigManager.getConfigFile()
           .getString(ConfigConstants.LocalizedMessages.CRITICAL_HIT);
   if (!"".equals(message)) {
     player.sendMessage(ChatColor.BLUE + message + " (x " + critDamageMultifier + ")");
   }
 }
Пример #2
0
 public static void SendHeadShotMessageToPlayer(Player player, double headshotDamageModifier) {
   String message =
       BetterLeveling.ConfigManager.getConfigFile()
           .getString(ConfigConstants.LocalizedMessages.HEADSHOT);
   if (!"".equals(message)) {
     player.sendMessage(ChatColor.RED + message + " (x " + headshotDamageModifier + ")");
   }
 }
Пример #3
0
 public static void SendDodgeMessageToPlayer(Player player, int newDamage, int originalDamage) {
   String message =
       BetterLeveling.ConfigManager.getConfigFile()
           .getString(ConfigConstants.LocalizedMessages.DODGE);
   if (!"".equals(message)) {
     player.sendMessage(
         ChatColor.DARK_PURPLE + message + " (" + newDamage + " / " + originalDamage + ")");
   }
 }