mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 12:27:51 +00:00
Player: remove note about bans from getUniqueId()
while it's true that you might be able to skip the CPU waste from verifying a player's login just to find out that they are banned, this is generally a minority case anyway, so it doesn't make a lot of difference overall. This additional note is essentially a recommendation premature optimisation, which will likely lead to people making security mistakes.
This commit is contained in:
parent
61528393c2
commit
3af18917f0
@ -490,8 +490,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
* non-XBL players can fake their UUIDs.
|
* non-XBL players can fake their UUIDs.
|
||||||
*
|
*
|
||||||
* WARNING: DO NOT trust this before PlayerLoginEvent. Before PlayerLoginEvent, the player hasn't yet been
|
* WARNING: DO NOT trust this before PlayerLoginEvent. Before PlayerLoginEvent, the player hasn't yet been
|
||||||
* authenticated, and any of their data might be faked. However, you can use it for things like checking bans at any
|
* authenticated, and any of their data might be faked.
|
||||||
* time (since it doesn't make sense to impersonate a banned player anyway).
|
|
||||||
*/
|
*/
|
||||||
public function getUniqueId() : ?UUID{
|
public function getUniqueId() : ?UUID{
|
||||||
return parent::getUniqueId();
|
return parent::getUniqueId();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user