KoxSosen / SimpleVoiceBans

SimpleVoiceBans provides a simple LibertyBans and SimpleVoiceChat integration.
MIT License
6 stars 1 forks source link

cant start on 1.12.2 java 21 #2

Closed Fjox closed 1 month ago

Fjox commented 1 month ago

[23:48:28 INFO]: [SimpleVoiceBans] Successfully registered!
[23:48:28 INFO]: [SimpleVoiceBans] We determined that you do not have LibertyBans installed on this backend server.
[23:48:28 INFO]: [SimpleVoiceBans] Therefore we assume that you have it installed on the proxy.
[23:48:28 INFO]: [SimpleVoiceBans] Enabling proxy support.
[23:48:28 INFO]: [SimpleVoiceBans] This server is proxied.
[23:48:28 ERROR]: Error occurred while enabling SimpleVoiceBans v1.0-SNAPSHOT (Is it up to date?)
org.bukkit.plugin.messaging.ChannelNameTooLongException: Attempted to send a Plugin Message to a channel that was too large. The maximum length a channel may be is 20 chars (attempted 22 - 'simplevoicebans:custom.
        at org.bukkit.plugin.messaging.StandardMessenger.validateChannel(StandardMessenger.java:446) ~[patched_1.12.2.jar:git-Paper-1620]
        at org.bukkit.plugin.messaging.StandardMessenger.registerOutgoingPluginChannel(StandardMessenger.java:179) ~[patched_1.12.2.jar:git-Paper-1620]
        at com.github.koxsosen.bukkit.BukkitPluginLoader.onEnable(BukkitPluginLoader.java:56) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[patched_1.12.2.jar:git-Paper-1620]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:316) ~[patched_1.12.2.jar:git-Paper-1620]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) ~[patched_1.12.2.jar:git-Paper-1620]
        at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:395) ~[patched_1.12.2.jar:git-Paper-1620]
        at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:344) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:442) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:403) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:341) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:289) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:616) ~[patched_1.12.2.jar:git-Paper-1620]
        at java.lang.Thread.run(Thread.java:1583) [?:?]```
KoxSosen commented 1 month ago

Thank you! I'll push out a fix in the coming days.

Fjox commented 1 month ago

when this happends and someone talks on the server it spams this error [01:02:53 ERROR]: [voicechat] Failed to dispatch event 'MicrophonePacketEvent' org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register task while disabled at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.validate(CraftScheduler.java:488) ~[patched_1.12.2.jar:git-Paper-1620] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.runTaskTimerAsynchronously(CraftScheduler.java:168) ~[patched_1.12.2.jar:git-Paper-1620] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.runTaskLaterAsynchronously(CraftScheduler.java:142) ~[patched_1.12.2.jar:git-Paper-1620] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.runTaskAsynchronously(CraftScheduler.java:125) ~[patched_1.12.2.jar:git-Paper-1620] at com.github.koxsosen.bukkit.SimpleVoiceBans.onMicrophone(SimpleVoiceBans.java:73) ~[?:?] at de.maxhenkel.voicechat.plugins.PluginManager.dispatchEvent(PluginManager.java:139) ~[?:?] at de.maxhenkel.voicechat.plugins.PluginManager.onMicPacket(PluginManager.java:242) ~[?:?] at de.maxhenkel.voicechat.voice.server.Server.onMicPacket(Server.java:302) ~[?:?] at de.maxhenkel.voicechat.voice.server.Server$ProcessThread.run(Server.java:269) ~[?:?]

KoxSosen commented 1 month ago

Untested fix is available on the fix-older-compatibility branch. If you can compile plugins, feel free to give it a try, otherwise I'll release a version that is verified to work on 1.12 in a couple days.

Fjox commented 1 month ago

Untested fix is available on the fix-older-compatibility branch. If you can compile plugins, feel free to give it a try, otherwise I'll release a version that is verified to work on 1.12 in a couple days.

its gradle, anyone can compile gradle. its not gcc

Fjox commented 1 month ago

did gradle change or since when do i need to type a project name for it to compile?

KoxSosen commented 1 month ago

SimpleVoiceBans uses a multi-module gradle build system, so we have multiple modules for each platform, and a common module for shared methods. So make sure that you are executing the uberJar task in the root "parent" module to get a working jar for every platform. Jars will be in <platform-name>/build/SimpleVoiceBans-<version>-uber.jar.

Fjox commented 1 month ago

Untested fix is available on the fix-older-compatibility branch. If you can compile plugins, feel free to give it a try, otherwise I'll release a version that is verified to work on 1.12 in a couple days.


org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:150) ~[patched_1.12.2.jar:git-Paper-1620]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136) ~[patched_1.12.2.jar:git-Paper-1620]
        at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:318) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:222) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:616) ~[patched_1.12.2.jar:git-Paper-1620]
        at java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
        ... 6 more```
Fjox commented 1 month ago

SimpleVoiceBans uses a multi-module gradle build system, so we have multiple modules for each platform, and a common module for shared methods. So make sure that you are executing the uberJar task in the root "parent" module to get a working jar for every platform. Jars will be in <platform-name>/build/SimpleVoiceBans-<version>-uber.jar.

oh sorry i compiled it with only uber bruh

Fjox commented 1 month ago

nvm same error


org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:150) ~[patched_1.12.2.jar:git-Paper-1620]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136) ~[patched_1.12.2.jar:git-Paper-1620]
        at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:318) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:222) ~[patched_1.12.2.jar:git-Paper-1620]
        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:616) ~[patched_1.12.2.jar:git-Paper-1620]
        at java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
        ... 6 more```
KoxSosen commented 1 month ago

Are you sure you are using the right jar? Which commands did you execute in which directories?

Fjox commented 1 month ago

Are you sure you are using the right jar? Which commands did you execute in which directories?

gradlew uberJar in C:\Users\Fox Ritch\Downloads\SimpleVoiceBans-fix-older-compatibility\

KoxSosen commented 1 month ago

That sounds correct. And which jars did you move to the server?

Fjox commented 1 month ago

the only jar i could find in /build

also can we move to discord?

KoxSosen commented 1 month ago

Sure, you can add me as koxsosen.

KoxSosen commented 1 month ago

Thank you for reporting again! A fix has been merged, release will be out soon.