Skip to content
This repository was archived by the owner on Aug 11, 2024. It is now read-only.

Commit e0cf573

Browse files
committed
ロビーのスポーン地点をハードコード!←
1 parent 77f3324 commit e0cf573

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/core/Lobby.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ class Lobby extends SubPluginBase implements Listener{
3636
public static function teleportToLobby(Player $player) : void{
3737
PlayerUtils::resetAllStates($player);
3838

39-
$position = $player->getServer()->getWorldManager()->getDefaultWorld()->getSpawnLocation();
40-
$player->teleport(Position::fromObject($position->add(0.5, 0, 0.5), $position->getWorld()), 0, 0);
39+
// TODO: 値のハードコードをやめる
40+
$position = new Position(362.5, 175, 279.5, $player->getServer()->getWorldManager()->getDefaultWorld());
41+
$player->teleport($position, 0, 0);
4142

4243
$player->getInventory()->addItem(
4344
VanillaItems::COMPASS()->setCustomName("§bゲームに参加する"),

0 commit comments

Comments
 (0)