Skip to content

Commit 3534343

Browse files
committed
版本更新至 3.72
修复:无法正常启动的BUG
1 parent 2b68e81 commit 3534343

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/src/me/skymc/taboolib/skript/SkriptHandler.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package me.skymc.taboolib.skript;
22

3+
import org.bukkit.Bukkit;
34
import org.bukkit.Sound;
45
import org.bukkit.inventory.ItemStack;
56

@@ -17,8 +18,10 @@ public class SkriptHandler {
1718
private static SkriptHandler inst = null;
1819

1920
private SkriptHandler() {
20-
Skript.registerExpression(ExpressionItemCache.class, ItemStack.class, ExpressionType.SIMPLE, "taboolib itemcache %string%");
21-
Skript.registerExpression(ExpressionTabooCodeItem.class, ItemStack.class, ExpressionType.SIMPLE, "taboocode itemcache %string%");
21+
if (Bukkit.getPluginManager().getPlugin("Skript") != null) {
22+
Skript.registerExpression(ExpressionItemCache.class, ItemStack.class, ExpressionType.SIMPLE, "taboolib itemcache %string%");
23+
Skript.registerExpression(ExpressionTabooCodeItem.class, ItemStack.class, ExpressionType.SIMPLE, "taboocode itemcache %string%");
24+
}
2225
}
2326

2427
public static SkriptHandler getInst() {

0 commit comments

Comments
 (0)