本帖最后由 小w超神 于 2021-11-15 20:09 编辑
点券插件同步不了数据库,一同步插件就崩溃无法使用,求解
这是我安装的插件以及数据库的配置
这是我同步了数据库之后输入指令/p me的报错
| [19:45:20 ERROR]: Error occurred while enabling PlayerPoints v2.1.5-SNAPSHOT (Is it up to date?) java.lang.NullPointerException: null at lib.PatPeter.SQLibrary.MySQL.isTable(MySQL.java:193) ~[?:?] at org.black_ixx.playerpoints.storage.models.MySQLStorage.(MySQLStorage.java:64) ~[?:?] at org.black_ixx.playerpoints.storage.StorageGenerator.createStorageHandlerForType(StorageGenerator.java:47) ~[?:?] at org.black_ixx.playerpoints.storage.StorageHandler.starting(StorageHandler.java:65) ~[?:?] at org.black_ixx.playerpoints.PlayerPoints.registerModule(PlayerPoints.java:142) ~[?:?] at org.black_ixx.playerpoints.PlayerPoints.onEnable(PlayerPoints.java:67) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.5.jar:git-Paper-782] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.16.5.jar:git-Paper-782] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.16.5.jar:git-Paper-782] at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:518) ~[patched_1.16.5.jar:git-Paper-782] at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:432) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:594) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:298) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1069) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-782] at java.lang.Thread.run(Unknown Source) [?:1.8.0_181] [19:45:20 INFO]: [PlayerPoints] Disabling PlayerPoints v2.1.5-SNAPSHOT [19:45:20 INFO]: Running delayed init tasks [19:45:20 INFO]: Done (2.762s)! For help, type "help" [19:45:20 WARN]: [io.papermc.paper.util.PaperJvmChecker] ************************************************************ [19:45:20 WARN]: [io.papermc.paper.util.PaperJvmChecker] * WARNING - YOU ARE RUNNING AN OUTDATED VERSION OF JAVA. [19:45:20 WARN]: [io.papermc.paper.util.PaperJvmChecker] * PAPER WILL STOP BEING COMPATIBLE WITH THIS VERSION OF [19:45:20 WARN]: [io.papermc.paper.util.PaperJvmChecker] * JAVA WHEN MINECRAFT 1.17 IS RELEASED. [19:45:20 WARN]: [io.papermc.paper.util.PaperJvmChecker] * [19:45:20 WARN]: [io.papermc.paper.util.PaperJvmChecker] * Please update the version of Java you use to run Paper [19:45:20 WARN]: [io.papermc.paper.util.PaperJvmChecker] * to at least Java 16. When Paper for Minecraft 1.17 is [19:45:20 WARN]: [io.papermc.paper.util.PaperJvmChecker] * released support for versions of Java before 16 will [19:45:20 WARN]: [io.papermc.paper.util.PaperJvmChecker] * be dropped. [19:45:20 WARN]: [io.papermc.paper.util.PaperJvmChecker] * [19:45:20 WARN]: [io.papermc.paper.util.PaperJvmChecker] * Current Java version: 1.8.0_181 [19:45:20 WARN]: [io.papermc.paper.util.PaperJvmChecker] * [19:45:20 WARN]: [io.papermc.paper.util.PaperJvmChecker] * Check this forum post for more information: [19:45:20 WARN]: [io.papermc.paper.util.PaperJvmChecker] * https://papermc.io/java16 [19:45:20 WARN]: [io.papermc.paper.util.PaperJvmChecker] ************************************************************ [19:45:20 INFO]: Timings Reset [19:45:27 INFO]: UUID of player SsIiron is 0433a5a6-20c5-4135-bd0e-7531c2276306 [19:45:28 INFO]: SsIiron joined the game [19:45:28 INFO]: SsIiron[/14.111.7.205:16913] logged in with entity id 216 at ([world]-102.5, 64.0, -152.5) > op SsIiron [19:45:32 INFO]: Made SsIiron a server operator [19:45:36 INFO]: SsIiron issued server command: /p me [19:45:36 ERROR]: null org.bukkit.command.CommandException: Cannot execute command 'p' in plugin PlayerPoints v2.1.5-SNAPSHOT - plugin is disabled. at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) ~[patched_1.16.5.jar:git-Paper-782] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.16.5.jar:git-Paper-782] at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:826) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.PlayerConnection.handleCommand(PlayerConnection.java:2185) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.PlayerConnection.c(PlayerConnection.java:2000) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:1953) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:49) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:7) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:35) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1266) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1259) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1220) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1134) ~[patched_1.16.5.jar:git-Paper-782] at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-782] at java.lang.Thread.run(Unknown Source) [?:1.8.0_181] |
提供playerpoints版本,如果不是3.x版本,尝试更新后再用
可是我另外的端也能同步 也是用的同一个版本 ,如果升级这个版本的话其他端也需要同步升级吗
有1.12.2的paper
1.16.5的spigot
那问题很简单了,你先更新,用新版本的playerpoints来使用数据库即可正常链接
查了一下不知道是我没找对还是啥 最新版就2.1.5
能提供一下链接吗
感谢,之前在devbukkit.org上找最新版没找到,你提醒了我!