Skip to content

Examples

Haylee Schäfer edited this page Jan 10, 2019 · 8 revisions

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

Schedulers

(bigger image)

Generic Examples

Spawn a HEART particle at 100,100,100

(bigger image)

Send Message with Player's name on join

You can’t perform that action at this time.