/** * @param CommandSender $sender * @return array */ public function getFullHelp(CommandSender $sender) { $out = []; foreach ($this->subcmds as $cmd) { if (!$cmd->hasPermission($sender, $this->main->getFList()->getFaction($sender))) { continue; } if (!$sender->hasPermission($this->getPermission() . "." . strtolower($cmd->getName()))) { continue; } $output = ""; $output .= "/{$this->getName()} "; $output .= TextFormat::LIGHT_PURPLE . $cmd->getName() . " "; $output .= TextFormat::GREEN . $cmd->getUsage() . " "; $output .= TextFormat::AQUA . $cmd->getDescription(); $out[] = $output; } return $out; }
public function forceClaim(Chunk $chunk) { $this->chunks[] = $chunk; $this->main->getFList()->onChunkClaimed($this, $chunk); }