Abilities send messages to nearby players when they wear off.

This commit is contained in:
nossr50
2012-02-29 16:04:31 -08:00
parent 885ec70d28
commit 80374333b6
13 changed files with 117 additions and 22 deletions

View File

@ -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));
}
}
}
}