#Kotlin Plugin Error
1 messages · Page 1 of 1 (latest)
line 7 of your HighersHelpfulThings class
we can't do anything if we dont got no code
onEnable and onDisable
@green violet
also you can't import an internal class
yea im new to kotlin
idk how to extend the javaplugin class in kotlin and this is my code
package net.higherlight
import org.bukkit.plugin.java.JavaPlugin
class HighersHelpfulThings : JavaPlugin() {
override fun onEnable() {
server.consoleSender.sendMessage("net.higherlight.HighersHelpfulThings Enabled")
}
override fun onDisable() {
server.consoleSender.sendMessage("net.higherlight.HighersHelpfulThings Disabled")
}
}
@karmic meadow
- why u using
server.consoleSender, useplugin.logger.info - that's the right way to extend JavaPlugin
im new to kotlin
in java u use getServer().getConsoleSender.sendmessage
Just use the logger