diff --git a/src/main/java/com/skycat/wbshop/econ/Economy.java b/src/main/java/com/skycat/wbshop/econ/Economy.java index ecf5ca1..929b24b 100644 --- a/src/main/java/com/skycat/wbshop/econ/Economy.java +++ b/src/main/java/com/skycat/wbshop/econ/Economy.java @@ -171,24 +171,6 @@ public static ItemStack makeVoucher(long amount) { return voucher; } - @NotNull - public static ItemStack makeVoucher(long amount) { - ItemStack voucher = new ItemStack(Items.PAPER, 1); - - NbtCompound nbt = new NbtCompound(); - // NbtString#of apparently needs the JSON format of a Text in the form of a string - nbt.put("wbpoints", NbtLong.of(amount)); - voucher.setNbt(nbt); - - NbtList lore = new NbtList(); - lore.add(NbtString.of(Text.Serializer.toJson(Text.of(amount + " point" + (amount == 1 ? "": "s"))))); - - voucher.getOrCreateSubNbt("display").put("Lore", lore); - - voucher.setCustomName(Text.of("Point Voucher")); - return voucher; - } - public Account getOrCreateAccount(UUID uuid) { if (accounts.containsKey(uuid)) { return accounts.get(uuid);