Prevent players without UUIDs getting extension method updates

Affects issues:
- Fixed #1958
This commit is contained in:
Risto Lahtela 2021-07-03 10:12:41 +03:00
parent 826b6da133
commit 806a1faf78

View File

@ -162,6 +162,8 @@ public class ExtensionSvc implements ExtensionService {
if (playerUUID == null && playerName == null) return;
UUID realUUID = playerUUID != null ? playerUUID : uuidUtility.getUUIDOf(playerName);
if (realUUID == null) return;
String realPlayerName = playerName != null ?
playerName :
uuidUtility.getNameOf(realUUID).orElse(null);