Java Code Examples for org.bukkit.event.player.PlayerTeleportEvent#TeleportCause

The following examples show how to use org.bukkit.event.player.PlayerTeleportEvent#TeleportCause . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CraftLivingEntity.java    From Thermos with GNU General Public License v3.0 5 votes vote down vote up
@Override
public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) {
    if (getHealth() == 0) {
        return false;
    }

    return super.teleport(location, cause);
}
 
Example 2
Source File: CraftNameable.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 3
Source File: CraftNameable.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 4
Source File: CraftItemHolder.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Entity destination, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 5
Source File: CraftItemHolder.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 6
Source File: CraftItemHolder.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 7
Source File: CraftItemHolder.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 8
Source File: CraftItemHolder.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Entity destination, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 9
Source File: CraftNameable.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 10
Source File: CraftNameable.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Entity destination, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 11
Source File: CraftItemHolder.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Entity destination, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 12
Source File: CraftNameable.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 13
Source File: CraftItemHolder.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 14
Source File: CraftItemHolder.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 15
Source File: CraftNameable.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Entity destination, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 16
Source File: CraftItemHolder.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 17
Source File: HawkPlayer.java    From Hawk with GNU General Public License v3.0 4 votes vote down vote up
public void teleport(Location location, PlayerTeleportEvent.TeleportCause teleportCause) {
    Bukkit.getScheduler().scheduleSyncDelayedTask(hawk, () -> p.teleport(location, teleportCause), 0L);
}
 
Example 18
Source File: CraftNameable.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 19
Source File: CraftItemHolder.java    From Holograms with MIT License 4 votes vote down vote up
@Override
public boolean teleport(Entity destination, PlayerTeleportEvent.TeleportCause cause) {
    return false;
}
 
Example 20
Source File: BukkitAPIWrapper.java    From QuickShop-Reremake with GNU General Public License v3.0 4 votes vote down vote up
void teleportEntity(
@NotNull Entity entity,
@NotNull Location location,
@Nullable PlayerTeleportEvent.TeleportCause cause);