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