mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
#941: Don't allow Player removal via Entity#remove
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
parent
90df6eb97a
commit
304434a635
1 changed files with 2 additions and 0 deletions
|
@ -257,6 +257,8 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mark the entity's removal.
|
* 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();
|
public void remove();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue