Skip to content

Commit

Permalink
removed s7a base64 item lib
Browse files Browse the repository at this point in the history
+ removed s7a base64 item lib
  • Loading branch information
poyrazinan committed Oct 14, 2023
1 parent 0ae82c3 commit b443fdd
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
5 changes: 0 additions & 5 deletions bukkit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@
<version>2.11.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>dev.s7a</groupId>
<artifactId>base64-itemstack</artifactId>
<version>1.0.0</version>
</dependency>
<!-- Spigot -->
<dependency>
<groupId>org.spigotmc</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.cryptomorin.xseries.XMaterial;
import de.themoep.inventorygui.*;
import dev.s7a.base64.Base64ItemStack;
import lombok.SneakyThrows;
import net.leaderos.plugin.Main;
import net.leaderos.plugin.helpers.ChatUtil;
Expand Down Expand Up @@ -102,7 +101,7 @@ public static void showGui(Player player, int itemAmount) {
int amount = item.getAmount();
int maxDurability = item.getType().getMaxDurability();
int durability = ItemUtils.getDurability(item, maxDurability);
String base64 = Base64ItemStack.encode(item);
String base64 = ItemUtils.toBase64(item);
double price = 0.0;
String creationDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
String modelId = ItemUtils.getModelId(item);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package net.leaderos.plugin.modules.bazaar.model;

import dev.s7a.base64.Base64ItemStack;
import lombok.Getter;
import lombok.Setter;
import lombok.SneakyThrows;
Expand All @@ -11,7 +10,6 @@
import net.leaderos.shared.model.Response;
import net.leaderos.shared.model.request.DeleteRequest;
import net.leaderos.shared.model.request.GetRequest;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
Expand Down Expand Up @@ -61,7 +59,7 @@ public PlayerBazaar(JSONObject response, String userId) {
* @return ItemStack of bazaar item
*/
public ItemStack getItem() {
ItemStack item = Base64ItemStack.decode(getBase64());
ItemStack item = ItemUtils.fromBase64(getBase64());
ItemMeta meta = item.getItemMeta();
List<String> lore = new ArrayList<>();
if (meta != null && meta.getLore() != null)
Expand Down
4 changes: 0 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,6 @@
<pattern>eu.okaeri</pattern>
<shadedPattern>net.leaderos.shades.okaeri</shadedPattern>
</relocation>
<relocation>
<pattern>dev.s7a</pattern>
<shadedPattern>net.leaderos.shades.s7a</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
Expand Down

0 comments on commit b443fdd

Please sign in to comment.