ExampleListener
in package
implements
Listener
Interfaces, Classes, Traits and Enums
- Listener
- Classes implementing this interface can be registered to receive called Events.
Table of Contents
- $plugin : MainClass
- __construct() : mixed
- handlerNamesCanBeAnything() : void
- This runs after all other priorities. We mustn't cancel the event at MONITOR priority, we can only observe the result.
- onRespawn() : void
Properties
$plugin
private
MainClass
$plugin
Methods
__construct()
public
__construct(MainClass $plugin) : mixed
Parameters
- $plugin : MainClass
Return values
mixed —handlerNamesCanBeAnything()
This runs after all other priorities. We mustn't cancel the event at MONITOR priority, we can only observe the result.
public
handlerNamesCanBeAnything(PlayerChatEvent $event) : void
Parameters
- $event : PlayerChatEvent
Tags
Return values
void —onRespawn()
public
onRespawn(PlayerRespawnEvent $event) : void
Parameters
- $event : PlayerRespawnEvent