Add log message that informs about the server being rate limited.

This commit is contained in:
Phoenix616 2023-08-13 19:48:18 +01:00
parent 2b36b7314f
commit 9bbd6028d0
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0
1 changed files with 1 additions and 0 deletions

View File

@ -351,6 +351,7 @@ public class NameManager implements Listener {
// This happens when the server was ratelimited by Mojang. Unfortunately there is no nice way to check that.
// We fall back to the method used by CraftBukkit to generate an OfflinePlayer's UUID
adminAccount = new Account(Properties.ADMIN_SHOP_NAME, UUID.nameUUIDFromBytes(("OfflinePlayer:" + Properties.ADMIN_SHOP_NAME).getBytes(Charsets.UTF_8)));
ChestShop.getBukkitLogger().log(Level.WARNING, "Your server appears to be ratelimited by Mojang and can't query UUID data from their API. If you run into issues with admin shops please report them!");
}
accounts.createOrUpdate(adminAccount);