3
0
Mirror von https://github.com/TheSilentPro/HeadDB.git synchronisiert 2024-12-27 11:20:05 +01:00

HF: Fixes Local Heads not opening

Dieser Commit ist enthalten in:
Silent 2020-12-10 20:42:10 +01:00
Ursprung 6af5c2684b
Commit b14b29ebf0
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -6,7 +6,7 @@
<groupId>tsp.headdb</groupId> <groupId>tsp.headdb</groupId>
<artifactId>HeadDB</artifactId> <artifactId>HeadDB</artifactId>
<version>2.0</version> <version>2.1</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>HeadDB</name> <name>HeadDB</name>

Datei anzeigen

@ -190,7 +190,7 @@ public class HeadAPI {
*/ */
public static List<LocalHead> getLocalHeads() { public static List<LocalHead> getLocalHeads() {
List<LocalHead> heads = new ArrayList<>(); List<LocalHead> heads = new ArrayList<>();
for (String key : HeadDB.getPlayerdata().keySet()) { for (String key : HeadDB.getPlayerdata().singleLayerKeySet()) {
OfflinePlayer player = Bukkit.getOfflinePlayer(UUID.fromString(key)); OfflinePlayer player = Bukkit.getOfflinePlayer(UUID.fromString(key));
heads.add(new LocalHead(player.getUniqueId()) heads.add(new LocalHead(player.getUniqueId())
.withName(player.getName())); .withName(player.getName()));

Datei anzeigen

@ -2,7 +2,7 @@ name: HeadDB
description: Database with thousands of heads description: Database with thousands of heads
main: tsp.headdb.HeadDB main: tsp.headdb.HeadDB
version: 2.0 version: 2.1
api-version: 1.16 api-version: 1.16
author: Silent author: Silent