Closed changwook987 closed 3 years ago
코드 한번 알려주실수있으신가요? 또 라이브러리도 제대로 적용되어있는지, 버전오차는 없는지 다시 확인하실수있나요?
package com.gbunny.samplekommand
import io.github.monun.kommand.kommand import net.kyori.adventure.text.Component.text import org.bukkit.plugin.java.JavaPlugin
class SampleKommand : JavaPlugin() { override fun onEnable() { kommand { register("sample"){ executes { sender.sendMessage(text("Hello World!")) } } } } }
plugin.yml name: SampleKommand version: '${project.version}' main: com.gbunny.samplekommand.SampleKommand api-version: 1.17 libraries:
pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
라이브러리는 [13:28:40 INFO]: [SampleKommand] Loaded library C:\Users\DGSW\Desktop\server\libraries\io\github\monun\Kommand\2.6.6\Kommand-2.6.6.jar [13:28:40 INFO]: [SampleKommand] Loaded library C:\Users\DGSW\Desktop\server\libraries\io\github\monun\kommand-api\2.6.6\kommand-api-2.6.6.jar 이렇게 뜨면 잘 불러와 진게 맞나요?
맞는디 대소문자구분문제가있나
맞는디 대소문자구분문제가있나
TEST-1.0-SNAPSHOT.jar, annotations-22.0.0.jar, kommand-api-2.6.6.jar, kotlin-stdlib-1.5.21.jar, kotlin-stdlib-common-1.5.21.jar, kotlin-stdlib-jdk7-1.5.21.jar, kotlin-stdlib-jdk8-1.5.21.jar define 1 overlapping resource:
컴파일 할 때 이런 오류가 뜨는데 관련 있나요?
코틀린 버전도 바꿔보고 이것저것 해보는데 점점 미궁으로 빠지고 있어요
관련없습니다. 프로젝트 소스 자체를 한번 올려보시겠어요? 시험끝나고 포크해서 따로 패치해보겠습니다. 이슈는 닫아주세요
test.zip ㅎㅎ...
[14:30:49] [Server thread/ERROR]: [org.bukkit.craftbukkit.v1_17_R1.CraftServer] null initializing CursedMinecraft v1.0 (Is it up to date?) java.lang.ExceptionInInitializerError: null at io.github.monun.kommand.Kommand.(Kommand.kt) ~[CursedMinecraft-1.0.jar:?]
at io.github.monun.kommand.PluginKommand.register(Kommand.kt:38) ~[CursedMinecraft-1.0.jar:?]
at com.gbunny.cursedminecraft.CursedMinecraft$onLoad$1.invoke(CursedMinecraft.kt:23) ~[CursedMinecraft-1.0.jar:?]
at com.gbunny.cursedminecraft.CursedMinecraft$onLoad$1.invoke(CursedMinecraft.kt:22) ~[CursedMinecraft-1.0.jar:?]
at io.github.monun.kommand.KommandKt.kommand(Kommand.kt:43) ~[CursedMinecraft-1.0.jar:?]
at com.gbunny.cursedminecraft.CursedMinecraft.onLoad(CursedMinecraft.kt:22) ~[CursedMinecraft-1.0.jar:?]
at org.bukkit.craftbukkit.v1_17_R1.CraftServer.loadPlugins(CraftServer.java:410) ~[patched_1.17.1.jar:git-Paper-209]
at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:276) ~[patched_1.17.1.jar:git-Paper-209]
at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1126) ~[patched_1.17.1.jar:git-Paper-209]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[patched_1.17.1.jar:git-Paper-209]
at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.lang.ClassCastException: class io.github.monun.kommand.v1_17_1.NMSKommand
at java.lang.Class.asSubclass(Class.java:3853) ~[?:?]
at io.github.monun.kommand.loader.LibraryLoader.loadNMS(LibraryLoader.kt:73) ~[CursedMinecraft-1.0.jar:?]
at io.github.monun.kommand.loader.LibraryLoader.loadNMS$default(LibraryLoader.kt:53) ~[CursedMinecraft-1.0.jar:?]
at io.github.monun.kommand.Kommand$Companion.(Kommand.kt:27) ~[CursedMinecraft-1.0.jar:?]
at io.github.monun.kommand.Kommand$Companion.(Kommand.kt) ~[CursedMinecraft-1.0.jar:?]
... 11 more
https://monun.me/dev/kommand/sample-kommand/ 이거보고 똑같이 쳤는데 자꾸 오류가 떠요