Skip to content

Commit

Permalink
Dev Build #60 || Fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
ricky074game committed May 2, 2022
1 parent 2e47122 commit 6e75c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BedWars/game/Game.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public function join(Player $player) : void{
foreach($this->teams as $team){
// $player->getInventory()->addItem($i = new Item(new ItemIdentifier(ItemIds::WOOL, Utils::colorIntoWool($team->getColor()))));
$item = ItemFactory::getInstance()->get(ItemIds::WOOL, Utils::colorIntoWool($team->getColor()));
$item->setCustomName(TextFormat::WHITE . "Team" . $team->getColor() . ucfirst($team->getName());
$item->setCustomName(TextFormat::WHITE . "Team" . $team->getColor() . ucfirst($team->getName()));
$player->getInventory()->addItem($item);
}
$player->getInventory()->setItem(8, ItemFactory::getInstance()->get(ItemIds::COMPASS)->setCustomName(TextFormat::YELLOW . "Leave"));
Expand Down

0 comments on commit 6e75c1a

Please sign in to comment.