Skip to content
This repository was archived by the owner on Oct 24, 2020. It is now read-only.
This repository was archived by the owner on Oct 24, 2020. It is now read-only.

Not working on 1.16.1 #29

@ArnyminerZ

Description

@ArnyminerZ

I'm currently running org.spigotmc:spigot:1.16.1-R0.1-SNAPSHOT as library, and can't manage to get the library working, I am using the following code for the onEnable method (I'm using Kotlin):

override fun onEnable() {
    logger.info("Registering listeners...")
    ArmorEquipListener(this)
}

and on the ArmorEquipListener:

class ArmorEquipListener(private val plugin: Plugin) : Listener {
    init {
        plugin.server.logger.info("   Registering ArmorEquipListener...")
        plugin.server.pluginManager.registerEvents(this, plugin)
    }

    @EventHandler
    fun onArmorEquip(event: ArmorEquipEvent) {
        plugin.server.logger.info("Got armor equip event")

        val player = event.player
        player.sendMessage("Wore armor!")
    }
}

Is the plugin incompatible with 1.16, or am I doing something wrong? Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions