com.sucy.skill.hook.RPGItemsHook Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proskillapi Show documentation
Show all versions of proskillapi Show documentation
A Minecraft Bukkit plugin aiming to provide an easy code API and skill editor for all server owners to
create unique and fully custom classes and skills.
package com.sucy.skill.hook;
import mc.promcteam.engine.utils.DataUT;
import org.bukkit.NamespacedKey;
import org.bukkit.inventory.ItemStack;
public class RPGItemsHook {
private static final NamespacedKey KEY_MODULE = NamespacedKey.fromString("prorpgitems:qrpg_item_module");
private static final NamespacedKey KEY_MODULE2 = NamespacedKey.fromString("quantumrpg:qrpg_item_module");
public static boolean isRPGItem(ItemStack item) {
String data = DataUT.getStringData(item, KEY_MODULE2);
if (data == null) data = DataUT.getStringData(item, KEY_MODULE);
return data != null;
}
}