版本更新至 3.72

修复:无法正常启动的BUG
This commit is contained in:
坏黑 2018-03-02 12:26:35 +08:00
parent 63c572c4f0
commit 97b73ad1b3

View File

@ -1,5 +1,6 @@
package me.skymc.taboolib.skript; package me.skymc.taboolib.skript;
import org.bukkit.Bukkit;
import org.bukkit.Sound; import org.bukkit.Sound;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
@ -17,9 +18,11 @@ public class SkriptHandler {
private static SkriptHandler inst = null; private static SkriptHandler inst = null;
private SkriptHandler() { private SkriptHandler() {
if (Bukkit.getPluginManager().getPlugin("Skript") != null) {
Skript.registerExpression(ExpressionItemCache.class, ItemStack.class, ExpressionType.SIMPLE, "taboolib itemcache %string%"); Skript.registerExpression(ExpressionItemCache.class, ItemStack.class, ExpressionType.SIMPLE, "taboolib itemcache %string%");
Skript.registerExpression(ExpressionTabooCodeItem.class, ItemStack.class, ExpressionType.SIMPLE, "taboocode itemcache %string%"); Skript.registerExpression(ExpressionTabooCodeItem.class, ItemStack.class, ExpressionType.SIMPLE, "taboocode itemcache %string%");
} }
}
public static SkriptHandler getInst() { public static SkriptHandler getInst() {
if (inst == null) { if (inst == null) {