From a89677159ab6301aa7cc13eb9b87d74a26634f8e Mon Sep 17 00:00:00 2001 From: InfinityDevFlo Date: Wed, 23 Dec 2020 16:00:10 +0100 Subject: [PATCH] Bugfix of Wrong chars in Namespaced key --- src/main/java/eu/vironlab/simpleitemlib/SimpleItemLib.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/eu/vironlab/simpleitemlib/SimpleItemLib.java b/src/main/java/eu/vironlab/simpleitemlib/SimpleItemLib.java index 51d74a7..c8ad283 100644 --- a/src/main/java/eu/vironlab/simpleitemlib/SimpleItemLib.java +++ b/src/main/java/eu/vironlab/simpleitemlib/SimpleItemLib.java @@ -37,7 +37,6 @@ package eu.vironlab.simpleitemlib; -import org.apache.commons.lang.RandomStringUtils; import org.bukkit.Bukkit; import org.bukkit.NamespacedKey; import org.bukkit.entity.Player; @@ -54,10 +53,8 @@ public final class SimpleItemLib extends JavaPlugin implements Listener { - private static SimpleItemLib instance; - public final String keyString = RandomStringUtils.random(64); - public final NamespacedKey key = new NamespacedKey(this, keyString); + public final NamespacedKey key = new NamespacedKey(this, "FUST4H61ML8Qx0gP53CAFQX97YE2BIaK"); public Map simpleItemStacks = new HashMap<>(); public static SimpleItemLib getInstance() { @@ -122,4 +119,5 @@ public void handleDrop(PlayerDropItemEvent e) { } } } + }