Skip to content

Commit

Permalink
Fix #180
Browse files Browse the repository at this point in the history
  • Loading branch information
inxomnyaa committed Dec 4, 2020
1 parent e3ef7b2 commit 6a92172
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xenialdan/MagicWE2/session/UserSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function isWandEnabled(): bool
public function setWandEnabled(bool $wandEnabled): string
{
$this->wandEnabled = $wandEnabled;
return Loader::PREFIX . $this->getLanguage()->translateString('tool.wand.setenabled', [($wandEnabled ? TF::GREEN . $this->getLanguage()->translateString('enabled') : TF::RED . $this->getLanguage()->translateString('disabled'))]) . TF::RESET . "!";
return Loader::PREFIX . $this->getLanguage()->translateString('tool.wand.setenabled', [($wandEnabled ? TF::GREEN . $this->getLanguage()->translateString('enabled') : TF::RED . $this->getLanguage()->translateString('disabled'))]);
}

/**
Expand All @@ -152,7 +152,7 @@ public function isDebugToolEnabled(): bool
public function setDebugToolEnabled(bool $debugToolEnabled): string
{
$this->debugToolEnabled = $debugToolEnabled;
return Loader::PREFIX . $this->getLanguage()->translateString('tool.debug.setenabled', [($debugToolEnabled ? TF::GREEN . $this->getLanguage()->translateString('enabled') : TF::RED . $this->getLanguage()->translateString('disabled'))]) . TF::RESET . "!";
return Loader::PREFIX . $this->getLanguage()->translateString('tool.debug.setenabled', [($debugToolEnabled ? TF::GREEN . $this->getLanguage()->translateString('enabled') : TF::RED . $this->getLanguage()->translateString('disabled'))]);
}

/**
Expand All @@ -177,7 +177,7 @@ public function setSidebarEnabled(bool $sidebarEnabled): string
} else {
ScoreFactory::removeScore($player);
}
return Loader::PREFIX . $this->getLanguage()->translateString('tool.sidebar.setenabled', [($sidebarEnabled ? TF::GREEN . $this->getLanguage()->translateString('enabled') : TF::RED . $this->getLanguage()->translateString('disabled'))]) . TF::RESET . "!";
return Loader::PREFIX . $this->getLanguage()->translateString('tool.sidebar.setenabled', [($sidebarEnabled ? TF::GREEN . $this->getLanguage()->translateString('enabled') : TF::RED . $this->getLanguage()->translateString('disabled'))]);
}

/**
Expand All @@ -202,7 +202,7 @@ public function setWailaEnabled(bool $wailaEnabled): string
} else {
Loader::getInstance()->wailaBossBar->hideFrom([$player]);
}
return Loader::PREFIX . $this->getLanguage()->translateString('tool.waila.setenabled', [($wailaEnabled ? TF::GREEN . $this->getLanguage()->translateString('enabled') : TF::RED . $this->getLanguage()->translateString('disabled'))]) . TF::RESET . "!";
return Loader::PREFIX . $this->getLanguage()->translateString('tool.waila.setenabled', [($wailaEnabled ? TF::GREEN . $this->getLanguage()->translateString('enabled') : TF::RED . $this->getLanguage()->translateString('disabled'))]);
}

/**
Expand Down

0 comments on commit 6a92172

Please sign in to comment.