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

Commit 3be90d6

Browse files
author
Shoghi Cervantes
committed
Merge pull request #3 from elfin8er/master
Updated logger
2 parents 52b578d + 53595cb commit 3be90d6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/ExamplePlugin/MainClass.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
class MainClass extends PluginBase implements Listener, CommandExecutor{
1616

1717
public function onLoad(){
18-
console(TextFormat::WHITE . "[ExamplePlugin] I've been loaded!");
18+
$this->getLogger()->info(TextFormat::WHITE . "I've been loaded!");
1919
}
2020

2121
public function onEnable(){
2222
$this->getServer()->getPluginManager()->registerEvents($this, $this);
2323
$this->getServer()->getScheduler()->scheduleRepeatingTask(new BroadcastPluginTask($this), 120);
24-
console(TextFormat::DARK_GREEN . "[ExamplePlugin] I've been enabled!");
25-
}
24+
$this->getLogger()->info(TextFormat::DARK_GREEN . "I've been enabled!");
25+
}
2626

2727
public function onDisable(){
28-
console(TextFormat::DARK_RED . "[ExamplePlugin] I've been disabled!");
28+
$this->getLogger()->info(TextFormat::DARK_RED . "I've been disabled!");
2929
}
3030

3131
public function onCommand(CommandSender $sender, Command $command, $label, array $args){

0 commit comments

Comments
 (0)