Don't load clipboard more than once. Deprecate BukkitPlayer constructors as it's more efficient to use cached players

This commit is contained in:
dordsor21
2021-09-28 14:11:12 +01:00
parent 848eac8623
commit e94b85a0fc
2 changed files with 9 additions and 2 deletions

View File

@ -551,7 +551,7 @@ public class WorldEditPlugin extends JavaPlugin {
}
//FAWE start
public BukkitPlayer getCachedPlayer(Player player) {
BukkitPlayer getCachedPlayer(Player player) {
List<MetadataValue> meta = player.getMetadata("WE");
if (meta.isEmpty()) {
return null;