-
Notifications
You must be signed in to change notification settings - Fork 0
FPlayer
Chris-Prime edited this page Dec 8, 2016
·
2 revisions
##Receiving FPlayer object NOTE: FPlayer(s) who are referenced in any of factions can't and must not be detached from storage!
####Basic Usage:
$fp = FPlayer::get($pointer);
$pointer
can be string (player name) and anything else implementing IPlayer interface. This function will always return a IFPlayer instance even if player doesn't exist, the new instance of IFPlayer will be constructed and attached to storage. Also it will take care of duplicates in most cases e.g. OfflineFPlayer was constructed for player with name 'Steve' and he came online, next time when calling FPlayer::get()
it will correct that.