Merge branch 'stable'

This commit is contained in:
Dylan K. Taylor
2019-07-09 15:57:02 +01:00
2 changed files with 3 additions and 2 deletions

View File

@ -62,6 +62,7 @@ class SetScorePacket extends DataPacket implements ClientboundPacket{
throw new BadPacketException("Unknown entry type $entry->type"); throw new BadPacketException("Unknown entry type $entry->type");
} }
} }
$this->entries[] = $entry;
} }
} }

View File

@ -140,7 +140,7 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
} }
/** /**
* Checks a supplied username and checks it is valid. * Validates the given username.
* *
* @param string $name * @param string $name
* *
@ -704,7 +704,7 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
} }
/** /**
* Gets the "friendly" name to display of this player to use in the chat. * Returns the "friendly" display name of this player to use in the chat.
* *
* @return string * @return string
*/ */