Player: fixed verify-xuid not kicking in by default on old configs

This commit is contained in:
Dylan K. Taylor 2021-02-07 21:10:23 +00:00
parent 606d56b55d
commit 46e9f0cec6
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -2082,7 +2082,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
*/
protected function processLogin(){
$this->namedtag = $this->server->getOfflinePlayerData($this->username);
if((bool) $this->server->getProperty("player.verify-xuid")){
if((bool) $this->server->getProperty("player.verify-xuid", true)){
$recordedXUID = $this->namedtag->getTag("LastKnownXUID");
if(!($recordedXUID instanceof StringTag)){
$this->server->getLogger()->debug("No previous XUID recorded for " . $this->getName() . ", no choice but to trust this player");