WorldEdit

WorldEdit

43M Downloads

Removing a WorldEdit's player entity raises an UnsupportedOperationException

Joo200 opened this issue ยท 0 comments

commented

WorldEdit Version

7.2.4

Platform Version

Spigot and Paper

Bug Description

Removing an entity of type player doesn't work. Spigot is unable to remove a player for obvious reasons.

WorldEdit's Entity.remove() will create a UnsupportedOperationException for player types.

Expected Behavior

As discussed in the discord removing players should return "false" instead of raising an exception.

Reproduction Steps

Use the following snippet in some bukkit plugin:

BukkitAdapter.adapt(player).remove();