From 6a92172b8a156758cfb921b4eedf04ddea2d95b6 Mon Sep 17 00:00:00 2001 From: XenialDan Date: Fri, 4 Dec 2020 06:33:02 +0100 Subject: [PATCH] Fix #180 --- src/xenialdan/MagicWE2/session/UserSession.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xenialdan/MagicWE2/session/UserSession.php b/src/xenialdan/MagicWE2/session/UserSession.php index ffed9bd0..9960dfa1 100644 --- a/src/xenialdan/MagicWE2/session/UserSession.php +++ b/src/xenialdan/MagicWE2/session/UserSession.php @@ -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'))]); } /** @@ -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'))]); } /** @@ -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'))]); } /** @@ -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'))]); } /**