mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-12 02:35:52 -07:00
#941: Don't allow Player removal via Entity#remove
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user