F Stealth Added

Signed-off-by: Driftay <saser_elite@yahoo.com>
This commit is contained in:
Driftay
2018-07-30 12:05:28 -04:00
parent 51f157931f
commit 751f46e57e
9 changed files with 76 additions and 15 deletions

View File

@@ -206,7 +206,7 @@ public class CmdFly extends FCommand {
if (entities.get(i) instanceof Player) {
Player eplayer = (Player) entities.get(i);
FPlayer efplayer = FPlayers.getInstance().getByPlayer(eplayer);
if (efplayer.getRelationTo(fme) == Relation.ENEMY) {
if (efplayer.getRelationTo(fme) == Relation.ENEMY && !efplayer.isStealthEnabled()) {
fme.msg(TL.COMMAND_FLY_CHECK_ENEMY);
return;
}
@@ -214,6 +214,7 @@ public class CmdFly extends FCommand {
}
if (args.size() == 0) {
toggleFlight(!fme.isFlying(), me);
} else if (args.size() == 1) {