if($args[0] == "kick") {
if(!isset($args[1])) {
$sender->sendMessage($this->plugin->formatMessage("§8§l> §4Используй: §b/c kick игрок"));
return true;
}
if($this->plugin->isInFaction($sender->getName()) == false) {
$sender->sendMessage($this->plugin->formatMessage("§8§l> §4Ты не состоишь в клане, чтобы сделать это!"));
return true;
}
if($this->plugin->isLeader($player) == false) {
$sender->sendMessage($this->plugin->formatMessage("§8§l> §4Ты не лидер клана, чтобы сделать это!"));
return true;
}
259 if($this->plugin->getPlayerFaction($player) != $this->$args[1]) {
260 $sender->sendMessage($this->plugin->formatMessage("§8§l> §4Игрок не состоит в данной фракции!"));
261 return true;
}
$kicked = $this->plugin->getServer()->getPlayer($args[1]);
$factionName = $this->plugin->getPlayerFaction($player);
$this->plugin->db->query("DELETE FROM master WHERE player='$args[1]';");
$sender->sendMessage($this->plugin->formatMessage("§8§l> §4Ты кикнул из клана §b$args[1]!", true));
$players[] = $this->plugin->getServer()->getOnlinePlayers();
if(in_array($args[1], $players) == true) {
$this->plugin->getServer()->getPlayer($args[1])->sendMessage($this->plugin->formatMessage("§8§l> §4Ты был кикнут из клана §b$factionName", true));
return true;
}
}
Вижу ошибка при кике с клана и да плагин взял с @qq_BCEM FactionsPro что в коде не так?