Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
DuoIncure committed Aug 17, 2023
1 parent 00b2a79 commit cfa3914
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/Vecnavium/SkyBlocksPM/commands/SkyBlockCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,20 @@ public function __construct(SkyBlocksPM $plugin){
}

public function prepare(): void {
/** @var SkyBlocksPM $plugin */
$plugin = $this->getOwningPlugin();
$this->setPermission('skyblockspm.command');
$this->registerSubCommand(new AcceptSubCommand($this->getOwningPlugin(), 'accept', 'Accept the incoming invite to a SkyBlock Island'));
$this->registerSubCommand(new ChatSubCommand($this->getOwningPlugin(), 'chat', 'Chat with your SkyBlock Island members'));
$this->registerSubCommand(new CreateSubCommand($this->getOwningPlugin(), 'create', 'Create your own SkyBlock Island'));
$this->registerSubCommand(new DeleteSubCommand($this->getOwningPlugin(), 'delete', 'Delete a users SkyBlock Island', ['disband']));
$this->registerSubCommand(new KickSubCommand($this->getOwningPlugin(), 'kick', 'Kick a member from your SkyBlock Island'));
$this->registerSubCommand(new LeaveSubCommand($this->getOwningPlugin(), 'leave', 'Leave your current SkyBlock Island'));
$this->registerSubCommand(new SettingsSubCommand($this->getOwningPlugin(), 'settings', 'Edit your SkyBlock Island settings'));
$this->registerSubCommand(new SetWorldCommand($this->getOwningPlugin(), 'setworld', 'Sets the current world as the SkyBlock World which will be copied to newer worlds upon Island creation'));
$this->registerSubCommand(new TpSubCommand($this->getOwningPlugin(), 'tp', 'Teleport to a users SkyBlock Island', ['go', 'home']));
$this->registerSubCommand(new InviteSubCommand($this->getOwningPlugin(), 'invite', 'Invites the player to your SkyBlock Island'));
$this->registerSubCommand(new VisitSubCommand($this->getOwningPlugin(), 'visit', 'Visit a players SkyBlock Island'));
$this->registerSubCommand(new AcceptSubCommand($plugin, 'accept', 'Accept the incoming invite to a SkyBlock Island'));
$this->registerSubCommand(new ChatSubCommand($plugin, 'chat', 'Chat with your SkyBlock Island members'));
$this->registerSubCommand(new CreateSubCommand($plugin, 'create', 'Create your own SkyBlock Island'));
$this->registerSubCommand(new DeleteSubCommand($plugin, 'delete', 'Delete a users SkyBlock Island', ['disband']));
$this->registerSubCommand(new KickSubCommand($plugin, 'kick', 'Kick a member from your SkyBlock Island'));
$this->registerSubCommand(new LeaveSubCommand($plugin, 'leave', 'Leave your current SkyBlock Island'));
$this->registerSubCommand(new SettingsSubCommand($plugin, 'settings', 'Edit your SkyBlock Island settings'));
$this->registerSubCommand(new SetWorldCommand($plugin, 'setworld', 'Sets the current world as the SkyBlock World which will be copied to newer worlds upon Island creation'));
$this->registerSubCommand(new TpSubCommand($plugin, 'tp', 'Teleport to a users SkyBlock Island', ['go', 'home']));
$this->registerSubCommand(new InviteSubCommand($plugin, 'invite', 'Invites the player to your SkyBlock Island'));
$this->registerSubCommand(new VisitSubCommand($plugin, 'visit', 'Visit a players SkyBlock Island'));
}

/**
Expand Down

0 comments on commit cfa3914

Please sign in to comment.