Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/cmi getbook Command error and cannot be used #9017

Closed
3 tasks done
polang233 opened this issue Aug 7, 2024 · 2 comments
Closed
3 tasks done

/cmi getbook Command error and cannot be used #9017

polang233 opened this issue Aug 7, 2024 · 2 comments
Labels
bug report Reports of bugs/inconsistencies

Comments

@polang233
Copy link

Description of Issue

Testing with default configuration still yields errors
I remember the first few versions were fine, but there were issues during testing in version 9.7.4.9. Even after updating to the latest version, the problem persists

Version Information

[03:46:50 INFO]: --------------------------------------------------
[03:46:50 INFO]: CMI版本:9.7.5.0 MySQL-> 9.7.4.9
[03:46:50 INFO]: CMILib版本:1.5.1.0
[03:46:50 INFO]: 服务器版本:Paper(1620) 1.12.2-R0.1-SNAPSHOT-
[03:46:50 INFO]: CMI经济系统:已启用Vault版本:1.7.3-b131(CMIEInjector)CMI聊天系统:已禁用
[03:46:50 INFO]: 模块 -> 52 已启用 14 已禁用:spawnerProximity, mirror, tablist, elytraExploit, skin, dynamicSigns, playerChatTag, schedule, chatBubble, ranks, votifier, spawnerCharge, homeInteractions, totemBehavior
[03:46:50 INFO]: --------------------------------------------------

Errors

[03:42:36 INFO]: Polang_ issued server command: /cmi getbook rules
[03:42:36 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'cmi' in plugin CMI v9.7.5.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[patched_1.12.2.jar:git-Paper-1620]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:152) ~[patched_1.12.2.jar:git-Paper-1620]
        at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:685) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1492) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1297) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14) ~[patched_1.12.2.jar:git-Paper-1620]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:850) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[patched_1.12.2.jar:git-Paper-1620]
        at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.NoSuchMethodError: java.lang.StringBuilder.isEmpty()Z
        at com.Zrips.CMI.Modules.CustomText.CText.convertToBook(CText.java:265) ~[?:?]
        at com.Zrips.CMI.commands.list.getbook.perform(getbook.java:88) ~[?:?]
        at com.Zrips.CMI.commands.CommandsHandler.onCommand(CommandsHandler.java:400) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[patched_1.12.2.jar:git-Paper-1620]
        ... 15 more

Relevant Config Sections

No response

Relevant Plugins

No response

Agreements

  • My server is supported by CMI.
  • My version of CMI at the time of this report is up to date.
  • I have searched the github and asked around before making this report.
@polang233 polang233 added the bug report Reports of bugs/inconsistencies label Aug 7, 2024
@Zrips
Copy link
Owner

Zrips commented Aug 13, 2024

Will be fixed with next update. Tho you should consider upgrading your Java version to have better compatibility with plugins in the future.

@Zrips Zrips closed this as completed Aug 13, 2024
@polang233
Copy link
Author

Will be fixed with next update. Tho you should consider upgrading your Java version to have better compatibility with plugins in the future.

I have already changed from Java8 to Java11. Directly upgrading to Java17 or above will cause many plugins to have problems in version 1.12.2, while upgrading the server version to 1.12 or above will be more troublesome...... Thank you for reminding me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Reports of bugs/inconsistencies
Projects
None yet
Development

No branches or pull requests

2 participants