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:
Preva1l authored and GitHub committed 2025-01-30 22:53:44 +00:00
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;
}
}