Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Fix for losing quiz
Browse files Browse the repository at this point in the history
  • Loading branch information
kvetinac97 committed Sep 23, 2015
1 parent ec950fc commit 43508cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kvetinac97/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function endQuiz(){
$players_played = \count($this->quiz_players);
foreach ($this->quiz_players as $how => $player){
if ($how == "wrong"){
if ($this->cfg->get("lose_commands") !== false){
if ($this->cfg->get("lose_commands") !== false and !($player->hasPermission("eq.lose"))){
foreach ($this->cfg->get("lose_commands") as $com){
$this->getServer()->getPluginManager()->dispatchCommand(new ConsoleCommandSender,\str_replace("%PLAYER",$player,$com));
}
Expand Down

0 comments on commit 43508cc

Please sign in to comment.