FireworkPolymer
如题,报错信息如下
  1. [01:21:11 ERROR]: Error occurred while enabling CrazyCrates v1.8.3 (Is it up to date?)
  2. java.lang.NoClassDefFoundError: me/clip/placeholderapi/external/EZPlaceholderHook
  3.         at me.badbones69.crazycrates.Main.onEnable(Main.java:108) ~[?:?]
  4.         at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[patched_1.12.2.jar:git-Paper-1620]
  5.         at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:316) ~[patched_1.12.2.jar:git-Paper-1620]
  6.         at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) ~[patched_1.12.2.jar:git-Paper-1620]
  7.         at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:395) ~[patched_1.12.2.jar:git-Paper-1620]
  8.         at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:344) ~[patched_1.12.2.jar:git-Paper-1620]
  9.         at net.citizensnpcs.nms.v1_12_R1.util.NMSImpl.loadPlugins(NMSImpl.java:772) ~[?:?]
  10.         at net.citizensnpcs.util.NMS.loadPlugins(NMS.java:439) ~[?:?]
  11.         at net.citizensnpcs.Citizens.enableSubPlugins(Citizens.java:197) ~[?:?]
  12.         at net.citizensnpcs.Citizens.onEnable(Citizens.java:404) ~[?:?]
  13.         at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[patched_1.12.2.jar:git-Paper-1620]
  14.         at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:316) ~[patched_1.12.2.jar:git-Paper-1620]
  15.         at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) ~[patched_1.12.2.jar:git-Paper-1620]
  16.         at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:395) ~[patched_1.12.2.jar:git-Paper-1620]
  17.         at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:344) ~[patched_1.12.2.jar:git-Paper-1620]
  18.         at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:442) ~[patched_1.12.2.jar:git-Paper-1620]
  19.         at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:403) ~[patched_1.12.2.jar:git-Paper-1620]
  20.         at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:341) ~[patched_1.12.2.jar:git-Paper-1620]
  21.         at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:289) ~[patched_1.12.2.jar:git-Paper-1620]
  22.         at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:616) ~[patched_1.12.2.jar:git-Paper-1620]
  23.         at java.lang.Thread.run(Unknown Source) [?:1.8.0_381]
复制代码

有两种解决办法:
1、一个能够替代crazycrates且能导入其抽奖内容的插件
2、让这个版本的cc支持新版本的papi

Neige
高版本papi没有EZPlaceholderHook,我记得高版本cc不支持1.12.2吧,如果你这个版本的cc有源码,那就得改源码;没源码,就得反编译删掉相关的东西,然后重写一个papi挂钩

FireworkPolymer
Neige 发表于 2023-8-24 09:58
高版本papi没有EZPlaceholderHook,我记得高版本cc不支持1.12.2吧,如果你这个版本的cc有源码,那就得改源 ...

没有源码

Neige

我注意到cc还针对MVdWPlaceholderAPI写了一些东西,你服务器装这个玩意儿了吗,如果装了,这玩意儿和高版本papi在一起是死是活

FireworkPolymer
Neige 发表于 2023-8-24 11:41
我注意到cc还针对MVdWPlaceholderAPI写了一些东西,你服务器装这个玩意儿了吗,如果装了,这玩意儿和高版 ...

这两个在高版本是兼容的,而且mvdw没有这种大的API变化,应该没啥问题

Rothes
https://github.com/Rothes/Placeh ... 98edc5a777a5182925d
给加回去了 试试能不能用

FireworkPolymer
Rothes 发表于 2023-8-24 12:56
https://github.com/Rothes/PlaceholderAPI/commit/b47eb8b2210ae939cbb3498edc5a777a5182925d
给加回去了  ...

回家试试

FireworkPolymer
Rothes 发表于 2023-8-24 12:56
https://github.com/Rothes/PlaceholderAPI/commit/b47eb8b2210ae939cbb3498edc5a777a5182925d
给加回去了  ...









Rothes
https://github.com/Rothes/Placeh ... e6edfe449bf53b6bb83

FireworkPolymer
Rothes 发表于 2023-8-24 18:04
https://github.com/Rothes/PlaceholderAPI/commit/5809d7a9c6d0aa37f74b5e6edfe449bf53b6bb83

可以了