Skip to content

Commit

Permalink
Fix PAPI placeholders not getting registered
Browse files Browse the repository at this point in the history
  • Loading branch information
MetallicGoat committed Oct 22, 2021
1 parent 383123d commit 0ed6486
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import de.marcely.bedwars.api.game.shop.ShopItem;
import me.metallicgoat.MBedwarsTweaks.Main;
import me.metallicgoat.MBedwarsTweaks.utils.ServerManager;
import me.metallicgoat.MBedwarsTweaks.utils.XSeries.XEnchantment;
import me.metallicgoat.MBedwarsTweaks.utils.XSeries.XMaterial;
import org.bukkit.Bukkit;
import org.bukkit.enchantments.Enchantment;
Expand Down Expand Up @@ -99,13 +100,15 @@ public void onRespawn(PlayerIngameRespawnEvent e) {
if (!pickaxe.equals("AIR")) {
Optional<XMaterial> material = XMaterial.matchXMaterial(pickaxe + "_PICKAXE");
if(material.isPresent()){

/*
ItemStack itemStack = new ItemStack(Objects.requireNonNull(material.get().parseItem()));
ItemMeta itemMeta = itemStack.getItemMeta();
assert itemMeta != null;
itemMeta.setUnbreakable(true);
itemStack.setItemMeta(itemMeta);
Enchantment enchantment = XEnchantment.DIG_SPEED.parseEnchantment();
Expand All @@ -117,6 +120,7 @@ public void onRespawn(PlayerIngameRespawnEvent e) {
case 4: itemMeta.addEnchant(enchantment, 2, true); break;
case 5: itemMeta.addEnchant(enchantment, 3, true); break;
}
itemStack.setItemMeta(itemMeta);
*/

Expand Down Expand Up @@ -149,6 +153,7 @@ public void onRespawn(PlayerIngameRespawnEvent e) {
*/


player.getInventory().addItem(material.get().parseItem());
}
}
Expand Down

0 comments on commit 0ed6486

Please sign in to comment.