Browse Source

Fixing skill messages sent to other players

nossr50 6 năm trước cách đây
mục cha
commit
4e9f5b99b8

+ 1 - 1
src/main/java/com/gmail/nossr50/util/skills/SkillUtils.java

@@ -144,7 +144,7 @@ public class SkillUtils {
 
         for (Player otherPlayer : player.getWorld().getPlayers()) {
             if (otherPlayer != player && Misc.isNear(location, otherPlayer.getLocation(), Misc.SKILL_MESSAGE_MAX_SENDING_DISTANCE)) {
-                NotificationManager.sendNearbyPlayersInformation(player, notificationType, key);
+                NotificationManager.sendNearbyPlayersInformation(player, notificationType, key, player.getName());
             }
         }
     }