13
0

Fix TeleporterListener
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-03-26 16:51:32 +01:00
Ursprung b044469153
Commit 0fd7288d02

Datei anzeigen

@ -21,14 +21,12 @@ package de.steamwar.lobby.listener;
import de.steamwar.inventory.SWInventory;
import de.steamwar.inventory.SWItem;
import de.steamwar.lobby.util.LobbyPlayer;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.inventory.InventoryType;
import org.bukkit.event.player.PlayerInteractEvent;
@ -42,7 +40,7 @@ public class TeleporterListener extends BasicListener {
private static final Location bau = new Location(world,1951,66,1337);
private static final Location arenen = new Location(world,2255,21,1450);
@EventHandler(priority = EventPriority.NORMAL)
@EventHandler
public void handlePlayerInteract(PlayerInteractEvent event) {
Player player = event.getPlayer();
if (!PlayerSpawn.NETHER_STAR.equals(event.getItem())) return;