Skip to content

Commit

Permalink
Command Registering change
Browse files Browse the repository at this point in the history
  • Loading branch information
KanekiLeChomeur authored Jun 13, 2022
1 parent fdfa17f commit 1924998
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CustomAlerts/src/CustomAlerts/CustomAlerts.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ public function onEnable():void{
@mkdir($this->getDataFolder());
$this->saveDefaultConfig();
$this->cfg = $this->getConfig()->getAll();
$tf = new PluginCommand("customalerts", $this, $this);
$tf->setExecutor(new Commands($this));
$this->getServer()->getCommandMap()->register("customalerts", new Commands($this));
$this->getServer()->getPluginManager()->registerEvents(new EventListener($this), $this);
$this->getScheduler()->scheduleRepeatingTask(new MotdTask($this), 20);
}
Expand Down

0 comments on commit 1924998

Please sign in to comment.