mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-27 04:25:14 +01:00
Set UUID version if players are online when manager loads (Fixes #265)
This commit is contained in:
parent
930b2cc07b
commit
5eb467a1d3
@ -363,6 +363,9 @@ public class NameManager implements Listener {
|
||||
}
|
||||
|
||||
public static void load() {
|
||||
if (getUuidVersion() < 0 && !Bukkit.getOnlinePlayers().isEmpty()) {
|
||||
setUuidVersion(Bukkit.getOnlinePlayers().iterator().next().getUniqueId().version());
|
||||
}
|
||||
try {
|
||||
accounts = DaoCreator.getDaoAndCreateTable(Account.class);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user