#941: Don't allow Player removal via Entity#remove

This commit is contained in:
DerFrZocker 2023-11-27 19:10:47 +11:00 committed by md_5
parent 276d0a741f
commit ef888c0741
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -257,6 +257,8 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
/**
* Mark the entity's removal.
*
* @throws UnsupportedOperationException if you try to remove a {@link Player} use {@link Player#kickPlayer(String)} in this case instead
*/
public void remove();