Skip to content

Commit

Permalink
Bugfix of Wrong chars in Namespaced key
Browse files Browse the repository at this point in the history
  • Loading branch information
InfinityDevFlo committed Dec 23, 2020
1 parent c95cfed commit a896771
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/eu/vironlab/simpleitemlib/SimpleItemLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<String, SimpleItemStack> simpleItemStacks = new HashMap<>();

public static SimpleItemLib getInstance() {
Expand Down Expand Up @@ -122,4 +119,5 @@ public void handleDrop(PlayerDropItemEvent e) {
}
}
}

}

0 comments on commit a896771

Please sign in to comment.