Merge branch 'master' of ssh://184.154.0.242:7999/min/Mineplex
This commit is contained in:
commit
7e2f5f0657
@ -38,7 +38,7 @@ public class VitalitySpores extends Skill
|
||||
@EventHandler
|
||||
public void playerMove(PlayerMoveEvent event)
|
||||
{
|
||||
if (UtilMath.offset(event.getFrom(), event.getTo()) > 0)
|
||||
if (doesUserHaveSkill(event.getPlayer()) && UtilMath.offset(event.getFrom(), event.getTo()) > 0)
|
||||
_lastMove.put(event.getPlayer(), System.currentTimeMillis());
|
||||
}
|
||||
|
||||
@ -71,6 +71,6 @@ public class VitalitySpores extends Skill
|
||||
@Override
|
||||
public void Reset(Player player)
|
||||
{
|
||||
|
||||
_lastMove.remove(player);
|
||||
}
|
||||
}
|
||||
|
@ -257,6 +257,11 @@ public abstract class Skill implements ISkill, Listener
|
||||
return null;
|
||||
}
|
||||
|
||||
protected boolean doesUserHaveSkill(Player player)
|
||||
{
|
||||
return _users.containsKey(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<Player> GetUsers()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user