mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Refactoring
This commit is contained in:
parent
946b5bb006
commit
9f1b77a007
@ -161,9 +161,9 @@ public class Skills {
|
|||||||
PP.setAbilityInformed(ability, false);
|
PP.setAbilityInformed(ability, false);
|
||||||
player.sendMessage(ability.getAbilityOff());
|
player.sendMessage(ability.getAbilityOff());
|
||||||
|
|
||||||
for (Player y : player.getWorld().getPlayers()) {
|
for (Player nearbyPlayer : player.getWorld().getPlayers()) {
|
||||||
if (y != player && Misc.isNear(player.getLocation(), y.getLocation(), MAX_DISTANCE_AWAY)) {
|
if (nearbyPlayer != player && Misc.isNear(player.getLocation(), nearbyPlayer.getLocation(), MAX_DISTANCE_AWAY)) {
|
||||||
y.sendMessage(ability.getAbilityPlayerOff(player));
|
nearbyPlayer.sendMessage(ability.getAbilityPlayerOff(player));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user