Skip to content

Commit

Permalink
Add log message that informs about the server being rate limited.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix616 committed Aug 13, 2023
1 parent 2b36b73 commit 9bbd602
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/Acrobot/ChestShop/UUIDs/NameManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ public static void load() {
// 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);

Expand Down

0 comments on commit 9bbd602

Please sign in to comment.