1.17.1-rc-1

This commit is contained in:
gnembon committed 2021-07-02 00:28:49 -03:00
1 parent 92eb46e8ad
commit 702789cab5
4 files changed
+6 -6

No files matched your search

@@ -189,7 +189,7 @@ public class PlayerCommand
Messenger.m(context.getSource(), "r Player ", "rb " + playerName, "r is already logged on");
return true;
}
GameProfile profile = server.getUserCache().findByName(playerName);
GameProfile profile = server.getUserCache().findByName(playerName).orElse(null);
if (profile == null)
{
if (!CarpetSettings.allowSpawningOfflinePlayers)