2019-02-10 22:03:53 +01:00
|
|
|
package de.butzlabben.world.gui.playeroption;
|
|
|
|
|
|
|
|
import de.butzlabben.inventory.DependListener;
|
|
|
|
import de.butzlabben.inventory.OrcItem;
|
|
|
|
import de.butzlabben.world.wrapper.WorldPlayer;
|
2019-05-04 09:23:09 +02:00
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
import org.bukkit.inventory.ItemStack;
|
2019-02-10 22:03:53 +01:00
|
|
|
|
|
|
|
public class TeleportStatus implements DependListener {
|
|
|
|
|
2019-08-10 15:31:30 +02:00
|
|
|
private final WorldPlayer wp;
|
2019-02-10 22:03:53 +01:00
|
|
|
|
2019-08-10 15:31:30 +02:00
|
|
|
public TeleportStatus(WorldPlayer wp) {
|
|
|
|
this.wp = wp;
|
|
|
|
}
|
2019-02-10 22:03:53 +01:00
|
|
|
|
2019-08-10 15:31:30 +02:00
|
|
|
@Override
|
|
|
|
public ItemStack getItemStack(Player p, WorldPlayer player) {
|
|
|
|
return wp.canTeleport() ? OrcItem.enabled.getItemStack(p, wp) : OrcItem.disabled.getItemStack(p, wp);
|
|
|
|
}
|
2018-04-22 21:37:56 +02:00
|
|
|
}
|