13
0

Fix TeleporterListener
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-03-26 16:44:49 +01:00
Ursprung 1695d02678
Commit 2e6677cb98

Datei anzeigen

@ -21,6 +21,7 @@ package de.steamwar.lobby.listener;
import de.steamwar.inventory.SWInventory; import de.steamwar.inventory.SWInventory;
import de.steamwar.inventory.SWItem; import de.steamwar.inventory.SWItem;
import de.steamwar.lobby.util.LobbyPlayer;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Material; import org.bukkit.Material;
@ -51,18 +52,23 @@ public class TeleporterListener extends BasicListener {
}); });
swInventory.setItem(0, new SWItem(Material.WOODEN_AXE, "§eBaubereich").getItemStack(), clickType -> { swInventory.setItem(0, new SWItem(Material.WOODEN_AXE, "§eBaubereich").getItemStack(), clickType -> {
player.teleport(bau); player.teleport(bau);
Portals.getStack(player).clear();
}); });
swInventory.setItem(1, new SWItem(Material.MAGMA_CREAM, "§eSpawn").getItemStack(), clickType -> { swInventory.setItem(1, new SWItem(Material.MAGMA_CREAM, "§eSpawn").getItemStack(), clickType -> {
player.teleport(spawn); player.teleport(spawn);
Portals.getStack(player).clear();
}); });
swInventory.setItem(2, new SWItem(Material.BEACON, "§eTeamhalle").getItemStack(), clickType -> { swInventory.setItem(2, new SWItem(Material.BEACON, "§eTeamhalle").getItemStack(), clickType -> {
player.teleport(team); player.teleport(team);
Portals.getStack(player).clear();
}); });
swInventory.setItem(3, new SWItem(Material.MAP, "§eMap").getItemStack(), clickType -> { swInventory.setItem(3, new SWItem(Material.MAP, "§eMap").getItemStack(), clickType -> {
player.teleport(map); player.teleport(map);
Portals.getStack(player).clear();
}); });
swInventory.setItem(4, new SWItem(Material.CLOCK, "§eArenen").getItemStack(), clickType -> { swInventory.setItem(4, new SWItem(Material.CLOCK, "§eArenen").getItemStack(), clickType -> {
player.teleport(arenen); player.teleport(arenen);
Portals.getStack(player).clear();
}); });
swInventory.open(); swInventory.open();
} }