Hi! well, my plugin it's crashed - This code PHP: } } /////////////////////////////// Gildia MSG /////////////////////////////// if(strtolower($args[0] == "msg")){ if(!isset($args[1])){ $sender->sendMessage($this->plugin->formatMessage("Use: /f say <mensagem>")); return true; } if(!($this->plugin->isInFaction($player))){ $sender->sendMessage($this->plugin->formatMessage("Crie Uma Fac")); return true; } $r = count($args); $row = array(); $rank = ""; $f = $this->plugin->getPlayerFaction($player); if($this->plugin->isOfficer($player)){ $rank = "*"; } else if($this->plugin->isLeader($player)){ $rank = "**"; } $message = "-> "; for($i=0;$i<$r-1;$i=$i+1){ $message = $message.$args[$i+1]." "; } $result = $this->plugin->db->query("SELECT * FROM master WHERE faction='$f';"); for($i=0;$resultArr = $result->fetchArray(SQLITE3_ASSOC);$i=$i+1){ $row[$i]['player'] = $resultArr['player']; $p = $this->plugin->getServer()->getPlayerExact($row[$i]['player']); if($p instanceof Player){ $p->sendMessage(TextFormat::RED.TextFormat::RED."-FacPv-".TextFormat::GOLD." [$rank$f] ".TextFormat::YELLOW."[$player] ".": ".TextFormat::RESET); $p->sendMessage(TextFormat::WHITE.TextFormat::WHITE.$message.TextFormat::RESET);} } } else { $this->plugin->getServer()->getLogger()->info($this->plugin->formatMessage("Użyj tej komendy w grze")); } }} This photo crash
PHP: if(strtolower($args[0] == "msg")){ if(!isset($args[1])){ $sender->sendMessage($this->plugin->formatMessage("Use: /f say <mensagem>")); return true; } if(!($this->plugin->isInFaction($player))){ $sender->sendMessage($this->plugin->formatMessage("Crie Uma Fac")); return true; } $r = count($args); $row = array(); $rank = ""; $f = $this->plugin->getPlayerFaction($player); if($this->plugin->isOfficer($player)){ $rank = "*"; } else if($this->plugin->isLeader($player)){ $rank = "**"; } $message = "-> "; for($i=0;$i<$r-1;$i=$i+1){ $message = $message.$args[$i+1]." "; } $result = $this->plugin->db->query("SELECT * FROM master WHERE faction='$f';"); for($i=0;$resultArr = $result->fetchArray(SQLITE3_ASSOC);$i=$i+1){ $row[$i]['player'] = $resultArr['player']; $p = $this->plugin->getServer()->getPlayerExact($row[$i]['player']); if($p instanceof Player){ $p->sendMessage(TextFormat::RED.TextFormat::RED."-FacPv-".TextFormat::GOLD." [$rank$f] ".TextFormat::YELLOW."[$player] ".": ".TextFormat::RESET); $p->sendMessage(TextFormat::WHITE.TextFormat::WHITE.$message.TextFormat::RESET); } }} else { $this->plugin->getServer()->getLogger()->info($this->plugin->formatMessage("Użyj tej komendy w grze"));}
I may able to help you with your problem but i need the whole files of the plugin or send me the phar file
No, you only need the 1 file with the syntax error in it. Also syntax errors should really be fixable by everyone.