tanyaofei / minecraft-fakeplayer

A plugin for minecraft server to spawn fake players, inspired by Carpet Mod
Apache License 2.0
111 stars 13 forks source link

Leaves1.21假人无法开启 #62

Closed Chaostarts closed 4 months ago

Chaostarts commented 4 months ago

Describe the bug / 描述你的 bug 情况 [11:43:27 INFO]: [fakeplayer] Enabling fakeplayer v0.3.6 [11:43:27 ERROR]: Error occurred while enabling fakeplayer v0.3.6 (Is it up to date?) java.lang.NullPointerException: Cannot invoke "com.google.inject.Injector.injectMembers(Object)" because "this.injector" is null at fakeplayer-0.3.6.jar/io.github.hello09x.fakeplayer.core.Main.onEnable(Main.java:60) ~[fakeplayer-0.3.6.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[leaves-1.21.jar:1.21-37-ec274f5] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[leaves-1.21.jar:1.21-37-ec274f5] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:644) ~[leaves-1.21.jar:1.21-37-ec274f5] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:593) ~[leaves-1.21.jar:1.21-37-ec274f5] at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:751) ~[leaves-1.21.jar:1.21-37-ec274f5] at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:510) ~[leaves-1.21.jar:1.21-37-ec274f5] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:333) ~[leaves-1.21.jar:1.21-37-ec274f5] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1213) ~[leaves-1.21.jar:1.21-37-ec274f5] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:325) ~[leaves-1.21.jar:1.21-37-ec274f5] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?] [11:43:27 INFO]: [fakeplayer] Disabling fakeplayer v0.3.6 [11:43:27 WARN]: [fakeplayer] java.lang.NullPointerException: Cannot invoke "com.google.inject.Injector.getInstance(java.lang.Class)" because "this.injector" is nul l at fakeplayer-0.3.6.jar//io.github.hello09x.fakeplayer.core.Main.lambda$onDisable$2(Main.java:114) at fakeplayer-0.3.6.jar//io.github.hello09x.devtools.core.utils.Exceptions.suppress(Exceptions.java:15) at fakeplayer-0.3.6.jar//io.github.hello09x.fakeplayer.core.Main.onDisable(Main.java:114) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:291) at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:237) at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugin(PaperPluginManagerImpl.java:114) at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:550) at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:206) at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:644) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:593) at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:751) at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:510) at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:333) at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1213) at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:325) at java.base/java.lang.Thread.run(Thread.java:1583)

[11:43:27 WARN]: [fakeplayer] java.lang.NullPointerException: Cannot invoke "com.google.inject.Injector.getInstance(java.lang.Class)" because "this.injector" is nul l at fakeplayer-0.3.6.jar//io.github.hello09x.fakeplayer.core.Main.lambda$onDisable$3(Main.java:115) at fakeplayer-0.3.6.jar//io.github.hello09x.devtools.core.utils.Exceptions.suppress(Exceptions.java:15) at fakeplayer-0.3.6.jar//io.github.hello09x.fakeplayer.core.Main.onDisable(Main.java:115) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:291) at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:237) at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugin(PaperPluginManagerImpl.java:114) at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:550) at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:206) at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:644) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:593) at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:751) at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:510) at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:333) at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1213) at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:325) at java.base/java.lang.Thread.run(Thread.java:1583)

Server information / 服务器信息

tanyaofei commented 4 months ago

上面应该还有日志

Chaostarts commented 4 months ago

[11:43:14] [Server thread/INFO]: [com.google.inject.Guice] An exception was caught and reported. Message: java.sql.SQLException: path to 'E:\ServerCore[5]生存游戏-1.21生存服\plugins\fakeplayer\data.db': 'E:\ServerCore[5]生存游戏-1.21生存服\plugins\fakeplayer' does not exist com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: path to 'E:\ServerCore[5]生存游戏-1.21生存服\plugins\fakeplayer\data.db': 'E:\ServerCore[5]生存游戏-1.21生存服\plugins\fakeplayer' does not exist at fakeplayer-0.3.6.jar/com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:98) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.HikariDataSource.(HikariDataSource.java:80) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/io.github.hello09x.devtools.database.DatabaseModule.dataSource(DatabaseModule.java:46) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/io.github.hello09x.devtools.database.DatabaseModule.configure(DatabaseModule.java:31) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.AbstractModule.configure(AbstractModule.java:64) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:426) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.spi.Elements.getElements(Elements.java:113) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:160) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.Guice.createInjector(Guice.java:87) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.Guice.createInjector(Guice.java:69) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.Guice.createInjector(Guice.java:59) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/io.github.hello09x.fakeplayer.core.Main.onLoad(Main.java:43) ~[fakeplayer-0.3.6.jar:?] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:59) ~[leaves-1.21.jar:1.21-37-ec274f5] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:18) ~[leaves-1.21.jar:1.21-37-ec274f5] at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:39) ~[leaves-1.21.jar:1.21-37-ec274f5] at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:40) ~[leaves-1.21.jar:1.21-37-ec274f5] at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:550) ~[leaves-1.21.jar:1.21-37-ec274f5] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:296) ~[leaves-1.21.jar:1.21-37-ec274f5] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1213) ~[leaves-1.21.jar:1.21-37-ec274f5] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:325) ~[leaves-1.21.jar:1.21-37-ec274f5] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?] Caused by: java.sql.SQLException: path to 'E:\ServerCore[5]生存游戏-1.21生存服\plugins\fakeplayer\data.db': 'E:\ServerCore[5]生存游戏-1.21生存服\plugins\fakeplayer' does not exist at org.sqlite.SQLiteConnection.open(SQLiteConnection.java:261) ~[sqlite-jdbc-3.46.0.0.jar:?] at org.sqlite.SQLiteConnection.(SQLiteConnection.java:67) ~[sqlite-jdbc-3.46.0.0.jar:?] at org.sqlite.jdbc3.JDBC3Connection.(JDBC3Connection.java:28) ~[sqlite-jdbc-3.46.0.0.jar:?] at org.sqlite.jdbc4.JDBC4Connection.(JDBC4Connection.java:19) ~[sqlite-jdbc-3.46.0.0.jar:?] at org.sqlite.JDBC.createConnection(JDBC.java:106) ~[sqlite-jdbc-3.46.0.0.jar:?] at org.sqlite.JDBC.connect(JDBC.java:79) ~[sqlite-jdbc-3.46.0.0.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:120) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550) ~[fakeplayer-0.3.6.jar:?] ... 22 more [11:43:14] [Server thread/ERROR]: [fakeplayer] Error initializing plugin 'fakeplayer-0.3.6.jar' in folder 'plugins.paper-remapped' (Is it up to date?) com.google.inject.CreationException: Unable to create injector, see the following errors:

1) An exception was caught and reported. Message: Failed to initialize pool: path to 'E:\ServerCore[5]生存游戏-1.21生存服\plugins\fakeplayer\data.db': 'E:\ServerCore[5]生存游戏-1.21生存服\plugins\fakeplayer' does not exist at [unknown source]

1 error at fakeplayer-0.3.6.jar/com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:589) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:163) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.Guice.createInjector(Guice.java:87) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.Guice.createInjector(Guice.java:69) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.Guice.createInjector(Guice.java:59) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/io.github.hello09x.fakeplayer.core.Main.onLoad(Main.java:43) ~[fakeplayer-0.3.6.jar:?] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:59) ~[leaves-1.21.jar:1.21-37-ec274f5] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:18) ~[leaves-1.21.jar:1.21-37-ec274f5] at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:39) ~[leaves-1.21.jar:1.21-37-ec274f5] at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:40) ~[leaves-1.21.jar:1.21-37-ec274f5] at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:550) ~[leaves-1.21.jar:1.21-37-ec274f5] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:296) ~[leaves-1.21.jar:1.21-37-ec274f5] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1213) ~[leaves-1.21.jar:1.21-37-ec274f5] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:325) ~[leaves-1.21.jar:1.21-37-ec274f5] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?] Caused by: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: path to 'E:\ServerCore[5]生存游戏-1.21生存服\plugins\fakeplayer\data.db': 'E:\ServerCore[5]生存游戏-1.21生存服\plugins\fakeplayer' does not exist at fakeplayer-0.3.6.jar/com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:98) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.HikariDataSource.(HikariDataSource.java:80) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/io.github.hello09x.devtools.database.DatabaseModule.dataSource(DatabaseModule.java:46) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/io.github.hello09x.devtools.database.DatabaseModule.configure(DatabaseModule.java:31) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.AbstractModule.configure(AbstractModule.java:64) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:426) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.spi.Elements.getElements(Elements.java:113) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:160) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107) ~[fakeplayer-0.3.6.jar:?] ... 13 more Caused by: java.sql.SQLException: path to 'E:\ServerCore[5]生存游戏-1.21生存服\plugins\fakeplayer\data.db': 'E:\ServerCore[5]生存游戏-1.21生存服\plugins\fakeplayer' does not exist at org.sqlite.SQLiteConnection.open(SQLiteConnection.java:261) ~[sqlite-jdbc-3.46.0.0.jar:?] at org.sqlite.SQLiteConnection.(SQLiteConnection.java:67) ~[sqlite-jdbc-3.46.0.0.jar:?] at org.sqlite.jdbc3.JDBC3Connection.(JDBC3Connection.java:28) ~[sqlite-jdbc-3.46.0.0.jar:?] at org.sqlite.jdbc4.JDBC4Connection.(JDBC4Connection.java:19) ~[sqlite-jdbc-3.46.0.0.jar:?] at org.sqlite.JDBC.createConnection(JDBC.java:106) ~[sqlite-jdbc-3.46.0.0.jar:?] at org.sqlite.JDBC.connect(JDBC.java:79) ~[sqlite-jdbc-3.46.0.0.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:120) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:98) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.zaxxer.hikari.HikariDataSource.(HikariDataSource.java:80) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/io.github.hello09x.devtools.database.DatabaseModule.dataSource(DatabaseModule.java:46) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/io.github.hello09x.devtools.database.DatabaseModule.configure(DatabaseModule.java:31) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.AbstractModule.configure(AbstractModule.java:64) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:426) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.spi.Elements.getElements(Elements.java:113) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:160) ~[fakeplayer-0.3.6.jar:?] at fakeplayer-0.3.6.jar/com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107) ~[fakeplayer-0.3.6.jar:?] ... 13 more

tanyaofei commented 4 months ago

手动在 plugins 目录下创建一个 fakeplayer 文件夹