mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 02:02:04 -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.
|
||||
*
|
||||
* @throws UnsupportedOperationException if you try to remove a {@link Player} use {@link Player#kickPlayer(String)} in this case instead
|
||||
*/
|
||||
public void remove();
|
||||
|
||||
|
Reference in New Issue
Block a user