Skip to content
This repository was archived by the owner on May 24, 2018. It is now read-only.

Commit 2b34cfd

Browse files
author
Shoghi Cervantes
committed
Added onLoad() example
1 parent 627c92d commit 2b34cfd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/MainClass.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
use PocketMine\Utils\TextFormat;
99

1010
class MainClass extends PluginBase{
11+
12+
public function onLoad(){
13+
console(TextFormat::WHITE . "[ExamplePlugin] I've been loaded!");
14+
}
1115

1216
public function onEnable(){
1317
console(TextFormat::DARK_GREEN . "[ExamplePlugin] I've been enabled!");
@@ -26,4 +30,4 @@ public function onCommand(CommandSender $sender, Command $command, $label, array
2630
return false;
2731
}
2832
}
29-
}
33+
}

0 commit comments

Comments
 (0)