-
-
Notifications
You must be signed in to change notification settings - Fork 4
Default Player Data
Zach edited this page Apr 30, 2020
·
1 revision
The primary focus of PUUIDs is getting and storing data on individual players asynchronously. When a player joins your server, PUUIDs will immediately create a Data File for them. This file by default stores the following values:
- UUID
- IP Address
- Logoff Time (System Millisecond Time Recorded)
- Username
- Total Time Played (in seconds) Here what a default player file looks like:
UUID: 6191ff85-e092-4e9a-94bd-63df409c2079
IP: 12.345.678.90
Username: zach_attack
Last-On: 1587855153569
Time-Played: 0All of these values can be retrieved like so:
-
Get UUID from Name:
PUUIDs.getUUID(username); -
Get Name from UUID:
PUUIDs.getName(uuid); -
Get IP:
PUUIDs.getIP(uuid); -
Get Logoff Timestamp:
PUUIDs.getLastOn(uuid); -
Get Time Played:
PUUIDs.getPlayTime(uuid);It's important to note that all UUIDs sent through PUUIDs must be as a string. All PUUIDs methods will use a UUID with the exception of the.getUUIDmethod, which requires a username.
This Wiki is still under construction. I am working my best to accurately document the API and ensure up to date information for PUUIDs.