mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-06 23:54:43 +02:00
Abilities send messages to nearby players when they wear off.
This commit is contained in:
@ -111,6 +111,12 @@ public class Skills
|
||||
ability.setMode(PP, false);
|
||||
ability.setInformed(PP, false);
|
||||
player.sendMessage(ability.getAbilityOff());
|
||||
|
||||
for(Player y : player.getWorld().getPlayers())
|
||||
{
|
||||
if(y != player && m.isNear(player.getLocation(), y.getLocation(), 10))
|
||||
y.sendMessage(ability.getAbilityPlayerOff(player));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user