From b14b29ebf055729daa6de83e845ded4dabf0861c Mon Sep 17 00:00:00 2001 From: Silent Date: Thu, 10 Dec 2020 20:42:10 +0100 Subject: [PATCH] HF: Fixes Local Heads not opening --- pom.xml | 2 +- src/main/java/tsp/headdb/api/HeadAPI.java | 2 +- src/main/resources/plugin.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 31b8eef..84587f7 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ tsp.headdb HeadDB - 2.0 + 2.1 jar HeadDB diff --git a/src/main/java/tsp/headdb/api/HeadAPI.java b/src/main/java/tsp/headdb/api/HeadAPI.java index d750535..1423c9b 100644 --- a/src/main/java/tsp/headdb/api/HeadAPI.java +++ b/src/main/java/tsp/headdb/api/HeadAPI.java @@ -190,7 +190,7 @@ public class HeadAPI { */ public static List getLocalHeads() { List heads = new ArrayList<>(); - for (String key : HeadDB.getPlayerdata().keySet()) { + for (String key : HeadDB.getPlayerdata().singleLayerKeySet()) { OfflinePlayer player = Bukkit.getOfflinePlayer(UUID.fromString(key)); heads.add(new LocalHead(player.getUniqueId()) .withName(player.getName())); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 15450ce..96c4c5b 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -2,7 +2,7 @@ name: HeadDB description: Database with thousands of heads main: tsp.headdb.HeadDB -version: 2.0 +version: 2.1 api-version: 1.16 author: Silent