Don't allow vanished players to block others from teleporting. Fixes #111.

This commit is contained in:
drtshock
2014-11-07 12:08:57 -06:00
parent 8b64b4bfe1
commit 962f92496c
5 changed files with 13 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ public class CmdHome extends FCommand {
}
FPlayer fp = FPlayers.getInstance().getByPlayer(p);
if (fme.getRelationTo(fp) != Relation.ENEMY) {
if (fme.getRelationTo(fp) != Relation.ENEMY || fp.isVanished()) {
continue;
}