Lukkit
  • Home
  • Getting Started
    • Installing Lukkit
    • Your First Plugin
    • Packing and Publishing
  • Storage
    • The StorageObject
    • Example
  • Commands
    • Command Options
    • Command Event
    • Examples
  • Gui
    • Create a simple inv
    • Create an advanced inv
    • Run function if an inventory item has been clicked
  • Events
    • Examples
    • Event List
      • Block
      • Enchantment
      • Entity
      • Hanging
      • Inventory
      • Player
      • Server
      • Vehicle
      • Weather
      • World
  • Globals
    • Global Functions
    • Global Variables
      • Plugin
      • Logging
      • Utilities
  • Wrappers
  • Examples
    • Discord Webhooks (http)
    • Toggle Fly
    • Hello, world!
Powered by GitBook
On this page

Events

PreviousRun function if an inventory item has been clickedNextExamples

Last updated 6 years ago

Lukkit allows you to hook into events, such as those when a block has been placed or a player has sent a chat message. To register an event, you can use the method. The event parameter can be an event listed in the or a path to a class, such as org.bukkit.player.PlayerJoinEvent.

plugin.registerEvent(event: string, callback: function)
event list