Skip to content

Working with players

Mark Hughes edited this page May 19, 2016 · 2 revisions

Players

Players are quite easily obtained using the FPlayers class, which returns an FPlayer object.

You can see the FPlayer interface for a full list of methods you can use.

Example

Sender sender = asender;
String id = uuid.toString();

// From by sender
FPlayer player = FPlayers.getBySender(sender);

// Or by id
FPlayer player = FPlayers.getById(id);

Sidebar

Clone this wiki locally