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)
|
if(LobbyPlayer.getLobbyPlayer(player.getUniqueId()) == null)
|
||||||
new LobbyPlayer(player.getUniqueId());
|
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);
|
LobbyInventory.givePlayerLobbyItems(player);
|
||||||
player.setGameMode(GameMode.ADVENTURE);
|
player.setGameMode(GameMode.ADVENTURE);
|
||||||
player.setHealth(20);
|
player.setHealth(20);
|
||||||
|
@ -18,7 +18,7 @@ public class PlayerMoveListener implements Listener {
|
|||||||
new Vector(Config.BorderMaxX, Config.BorderMaxY, Config.BorderMaxZ),
|
new Vector(Config.BorderMaxX, Config.BorderMaxY, Config.BorderMaxZ),
|
||||||
to.toVector()))
|
to.toVector()))
|
||||||
event.getPlayer().teleport(new Location(
|
event.getPlayer().teleport(new Location(
|
||||||
Bukkit.getWorld(Config.WorldName),
|
Bukkit.getWorlds().get(0),
|
||||||
Config.SpawnX,
|
Config.SpawnX,
|
||||||
Config.SpawnY,
|
Config.SpawnY,
|
||||||
Config.SpawnZ));
|
Config.SpawnZ));
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren