Closed SomeCatIDK closed 6 years ago
This will probably break some plugins
Can't wait xd
Yeah, I can see where it could break some plugins, but I still think it would be useful.
Wouden't it just be better if you made a bool where it said if the player is offline?
Possibly, but that would require changing the arguments or return type of this method, or creating a second.
I'd prefer a boolean on the player that says its offline. This would prevent using methods that require an IRocketPlayer when people are offline.
If someone were to specify the
CSteamID
of an offline or non-existent player,UnturnedPlayer.FromCSteamID
will return a non-nullUnturnedPlayer
reference.The PR will instead cause it to return a
null
reference.(yes I know I screwed the commit message up :D)