From 1695d026785b2035e286d9524a8318230325dccf Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 26 Mar 2022 16:43:12 +0100 Subject: [PATCH] Fix TeleporterListener --- src/de/steamwar/lobby/listener/TeleporterListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/de/steamwar/lobby/listener/TeleporterListener.java b/src/de/steamwar/lobby/listener/TeleporterListener.java index 035d499..48c7bf6 100644 --- a/src/de/steamwar/lobby/listener/TeleporterListener.java +++ b/src/de/steamwar/lobby/listener/TeleporterListener.java @@ -55,13 +55,13 @@ public class TeleporterListener extends BasicListener { swInventory.setItem(1, new SWItem(Material.MAGMA_CREAM, "§eSpawn").getItemStack(), clickType -> { player.teleport(spawn); }); - swInventory.setItem(1, new SWItem(Material.BEACON, "§eTeamhalle").getItemStack(), clickType -> { + swInventory.setItem(2, new SWItem(Material.BEACON, "§eTeamhalle").getItemStack(), clickType -> { player.teleport(team); }); - swInventory.setItem(1, new SWItem(Material.MAP, "§eMap").getItemStack(), clickType -> { + swInventory.setItem(3, new SWItem(Material.MAP, "§eMap").getItemStack(), clickType -> { player.teleport(map); }); - swInventory.setItem(1, new SWItem(Material.CLOCK, "§eArenen").getItemStack(), clickType -> { + swInventory.setItem(4, new SWItem(Material.CLOCK, "§eArenen").getItemStack(), clickType -> { player.teleport(arenen); }); swInventory.open();