mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
#941: Don't allow Player removal via Entity#remove
This commit is contained in:
parent
276d0a741f
commit
ef888c0741
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.
|
||||
*
|
||||
* @throws UnsupportedOperationException if you try to remove a {@link Player} use {@link Player#kickPlayer(String)} in this case instead
|
||||
*/
|
||||
public void remove();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue