completely new lobby system
Dieser Commit ist enthalten in:
Ursprung
342200def9
Commit
1abea30cbc
@ -20,7 +20,7 @@ public class PlayerJoinListener implements Listener {
|
||||
if(LobbyPlayer.getLobbyPlayer(player.getUniqueId()) == null)
|
||||
new LobbyPlayer(player.getUniqueId());
|
||||
|
||||
player.teleport(new Location(Bukkit.getWorld(Config.WorldName), Config.SpawnX, Config.SpawnY, Config.SpawnZ));
|
||||
player.teleport(new Location(Bukkit.getWorlds().get(0), Config.SpawnX, Config.SpawnY, Config.SpawnZ));
|
||||
LobbyInventory.givePlayerLobbyItems(player);
|
||||
player.setGameMode(GameMode.ADVENTURE);
|
||||
player.setHealth(20);
|
||||
|
@ -18,7 +18,7 @@ public class PlayerMoveListener implements Listener {
|
||||
new Vector(Config.BorderMaxX, Config.BorderMaxY, Config.BorderMaxZ),
|
||||
to.toVector()))
|
||||
event.getPlayer().teleport(new Location(
|
||||
Bukkit.getWorld(Config.WorldName),
|
||||
Bukkit.getWorlds().get(0),
|
||||
Config.SpawnX,
|
||||
Config.SpawnY,
|
||||
Config.SpawnZ));
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren