Dieser Commit ist enthalten in:
Ursprung
b044469153
Commit
0fd7288d02
@ -21,14 +21,12 @@ 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;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.EventPriority;
|
|
||||||
import org.bukkit.event.inventory.InventoryType;
|
import org.bukkit.event.inventory.InventoryType;
|
||||||
import org.bukkit.event.player.PlayerInteractEvent;
|
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 bau = new Location(world,1951,66,1337);
|
||||||
private static final Location arenen = new Location(world,2255,21,1450);
|
private static final Location arenen = new Location(world,2255,21,1450);
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.NORMAL)
|
@EventHandler
|
||||||
public void handlePlayerInteract(PlayerInteractEvent event) {
|
public void handlePlayerInteract(PlayerInteractEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
if (!PlayerSpawn.NETHER_STAR.equals(event.getItem())) return;
|
if (!PlayerSpawn.NETHER_STAR.equals(event.getItem())) return;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren