Fixed a bug that would spam other players when someone used an ability

This commit is contained in:
nossr50
2019-05-27 19:25:36 -07:00
parent 50e4e971d9
commit 1cda612e86
3 changed files with 8 additions and 10 deletions

View File

@ -125,7 +125,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, player.getName());
NotificationManager.sendNearbyPlayersInformation(otherPlayer, notificationType, key, player.getName());
}
}
}