mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +00:00
fix: being able to teleport a dead player (#758)
* fix: being able to teleport a dead player * why did this changes not get commited * chore: update javadoc
This commit is contained in:
1 parent
c2de97baea
commit
3190a81b7d
6 files changed
+40
-1
No files matched your search
@@ -175,4 +175,13 @@ public class BukkitUser extends OnlineUser {
|
||||
markedAsInvulnerable = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the teleporter can teleport.
|
||||
*
|
||||
* @return true if the teleport may complete.
|
||||
*/
|
||||
@Override
|
||||
public boolean isValid() {
|
||||
return getHealth() > 0;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user