From 9bbd6028d08126806cc5ab5b6e45b6a2374d42b7 Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Sun, 13 Aug 2023 19:48:18 +0100 Subject: [PATCH] Add log message that informs about the server being rate limited. --- src/main/java/com/Acrobot/ChestShop/UUIDs/NameManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/Acrobot/ChestShop/UUIDs/NameManager.java b/src/main/java/com/Acrobot/ChestShop/UUIDs/NameManager.java index 395673d..eead152 100644 --- a/src/main/java/com/Acrobot/ChestShop/UUIDs/NameManager.java +++ b/src/main/java/com/Acrobot/ChestShop/UUIDs/NameManager.java @@ -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);