Вопрос Помогите исправить ошибку в коде CoreProtect

Ядро
Paper

SpoGi

Пользователь
Сообщения
153
Плагин
https://www.spigotmc.org/resources/coreprotect.8631/
Ядро сервера
  1. Paper
Версия сервера
  1. 1.21
Память сервера ОЗУ
16Gb
Ссылка
https://www.spigotmc.org/resources/coreprotect.8631/
У меня на сервере возникает ошибка, когда игрок использует пластинку, возникает ошибка в коде.
ERROR Minecraft] Could not pass event PlayerInteractEvent to CoreProtect v22.4java.lang.NoSuchFieldError: Class org.bukkit.Tag does not have member field 'org.bukkit.Tag ITEMS_MUSIC_DISCS' at CoreProtect-22.4.jar//net.coreprotect.listener.player.PlayerInteractListener.onPlayerInteract(PlayerInteractListener.java:687) at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40) at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:598) at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:536) at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1871) at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:44) at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:11) at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:56) at net.minecraft.server.TickTask.run(TickTask.java:18) at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1533) at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201) at net.minecraft.util.thread.BlockableEvent
Я читал о ней и как я понял, разработчик ее исправил в коде, но закрыл исправленную версию на патреоне. При этом указал, как и где он исправил ее.
Пытался сам исправить через декомпилятор, но так как я вообще не понимаю в этом, ничего не получилось. Может ли кто то мне помочь? Не хочется убирать пластинки, игроки используют для кастомной музыки.
 
У меня на сервере возникает ошибка, когда игрок использует пластинку, возникает ошибка в коде.
ERROR Minecraft] Could not pass event PlayerInteractEvent to CoreProtect v22.4java.lang.NoSuchFieldError: Class org.bukkit.Tag does not have member field 'org.bukkit.Tag ITEMS_MUSIC_DISCS' at CoreProtect-22.4.jar//net.coreprotect.listener.player.PlayerInteractListener.onPlayerInteract(PlayerInteractListener.java:687) at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40) at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:598) at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:536) at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1871) at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:44) at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:11) at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:56) at net.minecraft.server.TickTask.run(TickTask.java:18) at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1533) at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201) at net.minecraft.util.thread.BlockableEvent
Я читал о ней и как я понял, разработчик ее исправил в коде, но закрыл исправленную версию на патреоне. При этом указал, как и где он исправил ее.
Пытался сам исправить через декомпилятор, но так как я вообще не понимаю в этом, ничего не получилось. Может ли кто то мне помочь? Не хочется убирать пластинки, игроки используют для кастомной музыки.
Попробуй
 

Вложения

  • CoreProtect-22.4.jar
    1.1 MB · Просмотры: 3
К сожалению не работает. даже дефолтную папку при загрузке сервера не создает.
Объединено

Так же, выдает ошибку и папку даже не создал.
Вам необходимо зарегистрироваться для просмотра изображений-вложений
 
Последнее редактирование:
А при включении что пишет? Я просто скачал с гитхаба последнюю версию исходников и нажал "собрать"
Нужен полный лог
[12:37:57] [ServerMain/INFO]: [bootstrap] Running Java 21 (OpenJDK 64-Bit Server VM 21.0.2+13-LTS; Microsoft Microsoft-8905927) on Windows 10 10.0 (amd64)
[12:37:57] [ServerMain/INFO]: [bootstrap] Loading Paper 1.21-111-master@66165f7 (2024-07-27T14:44:39Z) for Minecraft 1.21
[12:37:58] [ServerMain/INFO]: [PluginInitializerManager] Initializing plugins...
[12:37:58] [ServerMain/INFO]: [PluginInitializerManager] Initialized 1 plugin
[12:37:58] [ServerMain/INFO]: [PluginInitializerManager] Bukkit plugins (1):
- CoreProtect (22.4)
[12:38:03] [ServerMain/INFO]: Environment: Environment[sessionHost=[URL]https://sessionserver.mojang.com[/URL], servicesHost= , name=PROD]
[12:38:05] [ServerMain/INFO]: Loaded 1290 recipes
[12:38:05] [ServerMain/INFO]: Loaded 1399 advancements
[12:38:05] [Server thread/INFO]: Starting minecraft server version 1.21
[12:38:05] [Server thread/INFO]: Loading properties
[12:38:06] [Server thread/INFO]: This server is running Paper version 1.21-111-master@66165f7 (2024-07-27T14:44:39Z) (Implementing API version 1.21-R0.1-SNAPSHOT)
[12:38:06] [Server thread/INFO]: [spark] This server bundles the spark profiler. For more information please visit
[12:38:07] [Server thread/INFO]: Using 4 threads for Netty based IO
[12:38:07] [Server thread/INFO]: Server Ping Player Sample Count: 12
[12:38:07] [Server thread/INFO]: [ChunkTaskScheduler] Chunk system is using 1 I/O threads, 6 worker threads, and population gen parallelism of 6 threads
[12:38:07] [Server thread/INFO]: Default game type: SURVIVAL
[12:38:07] [Server thread/INFO]: Generating keypair
[12:38:07] [Server thread/INFO]: Starting Minecraft server on *:25565
[12:38:08] [Server thread/INFO]: Using default channel type
[12:38:08] [Server thread/INFO]: Paper: Using Java compression from Velocity.
[12:38:08] [Server thread/INFO]: Paper: Using Java cipher from Velocity.
[12:38:08] [Server thread/INFO]: [CoreProtect] Loading server plugin CoreProtect v22.4
[12:38:08] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[12:38:08] [Server thread/INFO]: Preparing level "world"
[12:38:08] [Server thread/INFO]: Preparing start region for dimension minecraft:eek:verworld
[12:38:09] [Server thread/INFO]: Time elapsed: 1111 ms
[12:38:09] [Server thread/INFO]: Preparing start region for dimension minecraft:the_nether
[12:38:09] [Server thread/INFO]: Time elapsed: 100 ms
[12:38:09] [Server thread/INFO]: Preparing start region for dimension minecraft:the_end
[12:38:09] [Server thread/INFO]: Time elapsed: 53 ms
[12:38:09] [Server thread/INFO]: [CoreProtect] Enabling CoreProtect v22.4
[12:38:16] [Server thread/INFO]: [CoreProtect] Invalid plugin version (branch has not been set).
[12:38:16] [Server thread/INFO]: [CoreProtect] To continue, set project branch to "development".
[12:38:16] [Server thread/INFO]: [CoreProtect] Running development code may result in data corruption.
[12:38:16] [Server thread/INFO]: [CoreProtect] CoreProtect was unable to start.
[12:38:16] [Server thread/INFO]: [CoreProtect] Disabling CoreProtect v22.4
[12:38:16] [Server thread/INFO]: [CoreProtect] Finishing up data logging. Please wait...
[12:38:16] [Server thread/INFO]: [CoreProtect] Success! Disabled CoreProtect v22.4
[12:38:16] [Server thread/INFO]: [spark] Starting background profiler...
[12:38:16] [Server thread/INFO]: [spark] The async-profiler engine is not supported for your os/arch (windows10/amd64), so the built-in Java engine will be used instead.
[12:38:16] [Server thread/INFO]: Done preparing level "world" (8.569s)
[12:38:16] [Server thread/INFO]: Starting GS4 status listener
[12:38:16] [Server thread/INFO]: Thread Query Listener started
[12:38:16] [Query Listener #1/INFO]: Query running on 0.0.0.0:25565
[12:38:16] [Server thread/INFO]: Running delayed init tasks
[12:38:16] [Server thread/INFO]: Done (20.465s)! For help, type "help"
[12:38:16] [Server thread/INFO]: Timings Reset
[12:38:28] [User Authenticator #0/INFO]: UUID of player SpoGi is 7414723e-56f0-4258-be73-2cb653ce3525
[12:38:29] [Server thread/INFO]: SpoGi joined the game
[12:38:29] [Server thread/INFO]: SpoGi[/127.0.0.1:58331] logged in with entity id 111 at ([world]-23.894015505046113, 72.0, -47.67338549958323)
[12:38:32] [Server thread/INFO]: SpoGi issued server command: /co i
[12:38:32] [Server thread/ERROR]: Command exception: /co i
org.bukkit.command.CommandException: Cannot execute command 'co' in plugin CoreProtect v22.4 - plugin is disabled.
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:91) ~[paper-1.21.jar:1.21-111-66165f7]
at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.2.9.jar:?]
at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:31) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:19) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:103) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:443) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.commands.Commands.performCommand(Commands.java:350) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.commands.Commands.performCommand(Commands.java:337) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.commands.Commands.performCommand(Commands.java:332) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2147) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$11(ServerGamePacketListenerImpl.java:2121) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1536) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1513) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1506) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:114) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1628) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1303) ~[paper-1.21.jar:1.21-111-66165f7]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330) ~[paper-1.21.jar:1.21-111-66165f7]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
[12:39:08] [Server thread/INFO]: Stopping the server
[12:39:08] [Server thread/INFO]: Stopping server
[12:39:08] [Server thread/INFO]: Saving players
[12:39:08] [Server thread/INFO]: SpoGi lost connection: Server closed
[12:39:08] [Server thread/INFO]: SpoGi left the game
[12:39:08] [Server thread/INFO]: Saving worlds
[12:39:08] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:eek:verworld
[12:39:08] [Server thread/INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'world'
[12:39:08] [Server thread/INFO]: [ChunkHolderManager] Halted chunk system for world 'world'
[12:39:08] [Server thread/INFO]: [ChunkHolderManager] Saving all chunkholders for world 'world'
[12:39:09] [Server thread/INFO]: [ChunkHolderManager] Saved 625 block chunks, 625 entity chunks, 0 poi chunks in world 'world' in 1,19s
[12:39:09] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world_nether]'/minecraft:the_nether
[12:39:09] [Server thread/INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'world_nether'
[12:39:09] [Server thread/INFO]: [ChunkHolderManager] Halted chunk system for world 'world_nether'
[12:39:09] [Server thread/INFO]: [ChunkHolderManager] Saving all chunkholders for world 'world_nether'
[12:39:09] [Server thread/INFO]: [ChunkHolderManager] Saved 49 block chunks, 49 entity chunks, 0 poi chunks in world 'world_nether' in 0,07s
[12:39:09] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world_the_end]'/minecraft:the_end
[12:39:09] [Server thread/INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'world_the_end'
[12:39:09] [Server thread/INFO]: [ChunkHolderManager] Halted chunk system for world 'world_the_end'
[12:39:09] [Server thread/INFO]: [ChunkHolderManager] Saving all chunkholders for world 'world_the_end'
[12:39:09] [Server thread/INFO]: [ChunkHolderManager] Saved 49 block chunks, 49 entity chunks, 0 poi chunks in world 'world_the_end' in 0,04s
[12:39:09] [Server thread/INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[12:39:09] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[12:39:09] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[12:39:09] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved
 
Назад
Сверху Снизу