Skip to content

Commit

Permalink
Fix signs and death messages 👍
Browse files Browse the repository at this point in the history
  • Loading branch information
GamakCZ committed May 12, 2018
1 parent bd92b7d commit 1985576
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions SkyWars/src/skywars/arena/Arena.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public function onDeath(PlayerDeathEvent $event) {
}
$this->toRespawn[$player->getName()] = $player;
$this->disconnectPlayer($player, "", true);
$this->broadcastMessage("§a> {$this->plugin->getServer()->getLanguage()->translateString($event->getDeathMessage())} §7[".count($this->players)."/{$this->data["slots"]}]");
$this->broadcastMessage("§a> {$this->plugin->getServer()->getLanguage()->translate($event->getDeathMessage())} §7[".count($this->players)."/{$this->data["slots"]}]");
$event->setDeathMessage("");
$event->setDrops([]);
}
Expand Down Expand Up @@ -522,7 +522,7 @@ public static function getChestItems(): array {
298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317
];
$chestItems[2] = [
319, 320, 297, 391, 392, 393, 396, 400, 411, 412, 423, 424,
319, 320, 297, 391, 392, 393, 396, 400, 411, 412, 423, 424
];
$chestItems[3] = [
1, 2, 3, 4, 5, 12, 13, 14, 15, 16, 17, 18, 82, 35, 45
Expand Down
6 changes: 3 additions & 3 deletions SkyWars/src/skywars/arena/ArenaScheduler.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ public function reloadSign() {
case Arena::PHASE_LOBBY:
if(count($this->plugin->players) >= $this->plugin->data["slots"]) {
$signText[2] = "§6Full";
$signText[3] = "§7§oArena is full.";
$signText[3] = "§8Map: §7{$this->plugin->level->getFolderName()}";
}
else {
$signText[2] = "§aJoin";
$signText[3] = "§7§oClick to join!";
$signText[3] = "§8Map: §7{$this->plugin->level->getFolderName()}";
}
break;
case Arena::PHASE_GAME:
Expand All @@ -172,7 +172,7 @@ public function reloadSign() {
break;
case Arena::PHASE_RESTART:
$signText[2] = "§cRestarting...";
$signText[3] = "§7Wait few sec.";
$signText[3] = "§8Map: §7{$this->plugin->level->getFolderName()}";
break;
}

Expand Down

0 comments on commit 1985576

Please sign in to comment.