mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
PluginBase: add void return typehints to onLoad(), onEnable() and onDisable()
This commit is contained in:
parent
82bb83211f
commit
21bafd9f07
@ -100,29 +100,23 @@ abstract class PluginBase implements Plugin, CommandExecutor{
|
||||
|
||||
/**
|
||||
* Called when the plugin is loaded, before calling onEnable()
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function onLoad()/* : void /* TODO: uncomment this for next major version */{
|
||||
protected function onLoad() : void{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the plugin is enabled
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function onEnable()/* : void /* TODO: uncomment this for next major version */{
|
||||
protected function onEnable() : void{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the plugin is disabled
|
||||
* Use this to free open things and finish actions
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function onDisable()/* : void /* TODO: uncomment this for next major version */{
|
||||
protected function onDisable() : void{
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user