Description
A little bit advanced spigot plugin, which holds the latest data about a player
(PlayerData) such as
(UUID, Nick, Texture, TextureSignature)
.
System updates data always after join player the game.
The main point of the plugin is to avoid repeating of the same queries to database to get the same PlayerData. Ones it is loaded by ProfileStorage and other plugins can communicate with this storage to get these data. It is primary created to get PlayerData of players, which has already visited the server.
E.g. Displaying stats in order to UUID or Nick.
ProfileStorage has own API created for developers to get data about players.
(Available later)
All requests run async, so plugin does not overload the main core of server. It supports two types of database:
MySQL or
SQLIte
Requirements
- Java8
- MySQL or SQLite driver
- TheCore
What can you do?
- You can ask for Nick on the basis of known Player's UUID.
- You can ask for UUID on the basis of known Player's Nick.
- You can ask for Player's Skull on the basis of known Player's Nick or UUID.
WARNING There is expected that all requests on PlayerData exist! If no, onFailure, function of callback, will be executed.
Configuration
Code (YAML):
#Space where to save profile data!
#Supported storage: MySQL, SQLite
Storage:
Type
:
"SQLite"
Host
:
"IP"
Port
: 3306
Database
:
"db"
User
:
"name"
Password
:
"*****"
#SimpleCache memory to store ProfileData loaded from Storage.
#Prevents before massive requests on Storage.
ProfileCacheSize
: 128
#Default(Predefined) data is used if an error at loading player's real data occurs
DefaultData:
Texture
:
"ewogICJ0aW1lc3RhbXAiIDogMTYwMjUzMzgzNjA0NywKICAicHJvZmlsZUlkIiA6ICI4NjY3YmE3MWI4NWE0MDA0YWY1NDQ1N2E5NzM0ZWVkNyIsCiAgInByb2ZpbGVOYW1lIiA6ICJTdGV2ZSIsCiAgInNpZ25hdHVyZVJlcXVpcmVkIiA6IHRydWUsCiAgInRleHR1cmVzIiA6IHsKICAgICJTS0lOIiA6IHsKICAgICAgInVybCIgOiAiaHR0cDovL25vdmFzay5pbi80Njc1MDk3LnBuZyIKICAgIH0sCiAgICAiQ0FQRSIgOiB7CiAgICAgICJ1cmwiIDogImh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTUzY2FjOGI3NzlmZTQxMzgzZTY3NWVlMmI4NjA3MWE3MTY1OGYyMTgwZjU2ZmJjZThhYTMxNWVhNzBlMmVkNiIKICAgIH0KICB9Cn0="
Signature
:
"Ri+gD6opLkTsZQuGpSzm3mT8K7s7n1fylC+3Opt/4CW+VTaBhRV8swJVVkqzvAW5N+FxRVLqjM2LYyKNoNfOHTg5UOTmO+Iel5B6mEZWTxRedUETj/M399GPwlv/Kn75KzN/SAMIQJ/2JLUF9Rr4iwQUaFkeT2aCK+4GHGsTKwQhE0GNRCZeKbiQQDBHg94CM+yFpG30IRcgZipBIYiYsLlFyDJXOU28tb+v99Io51QKPKa4uaSTx/M5FeVEBBBAFOG5VPnSy6Y7PLZRPUk7FkXFKsBjrrZnWTLNzevPjwvTT0W7BEdglXaNAYqx9EH1PpnEbu/HI4wz71V7BDwMKs6RAOAfCJm57gAz31yobCr6MhAcdrIvKqC7GQ9vL6qZms1+cZtLvSBtmXtKt69zSeC4lT2FyTiPFN1o69cWNa0atOz1QDRtU+MsOx9sQevtdJM9344+AcKPoxKZC0tXTJ4exP+Hud+eml7PyNPh5hQJ1KeKlALY9hTeeqHLlPlaUOtOOVOV7d54i4rVgAlOj7wloZ2Gt7k5WvPSExzFPN5P7P0lmTjhrwJvhBfV54w4jKe+l24GlsJrDYwqA2JooYGr+NA8D9UsCWk+LFWJ0lGKcYqdF1nBMqfnvwXE9wOqn0udJN3U7tcgrEE1/KM4fFByqIBas9778TzgiIyTgOU="
Locale
:
"EN"
Plugins using ProfileStorage 3.X.X
Plugins using ProfileStorage 2.X.X
Plugins using ProfileStorage 1.1.0 (Not recommenced to use)