Commits

DerFrZocker authored and md_5 committed ef888c07415
#941: Don't allow Player removal via Entity#remove
No tags

src/main/java/org/bukkit/entity/Entity.java

Modified
250 250 /**
251 251 * Gets if the entity is fully frozen (it has been in powdered snow for max
252 252 * freeze ticks).
253 253 *
254 254 * @return freeze status
255 255 */
256 256 boolean isFrozen();
257 257
258 258 /**
259 259 * Mark the entity's removal.
260 + *
261 + * @throws UnsupportedOperationException if you try to remove a {@link Player} use {@link Player#kickPlayer(String)} in this case instead
260 262 */
261 263 public void remove();
262 264
263 265 /**
264 266 * Returns true if this entity has been marked for removal.
265 267 *
266 268 * @return True if it is dead.
267 269 */
268 270 public boolean isDead();
269 271

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut