Examples
Haylee Schäfer edited this page Jan 10, 2019
·
8 revisions
Clone this wiki locally
onLoad, onEnable, onDisable
and onCommand
& onTabComplete
are special methods of the JavaPlugin class.
To utilize them, simply add a JavaPlugin node, enable the respective outputs and add the method nodes. They do not require a EXEC input connection and will be executed automatically.
https://bukkit.gamepedia.com/Plugin_Tutorial#onEnable()_and_onDisable()
Handling Commands
Logs the first argument of a command to the console. Requires the command to be configured in Project > Edit Project Information
(Bigger Image)
https://bukkit.gamepedia.com/Plugin_Tutorial#Commands
Handling Events
Sends *break*
to the player when they break a block