public class WauzPlayerSit
extends java.lang.Object
Constructor and Description |
---|
WauzPlayerSit() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canSitDown(org.bukkit.entity.Player player,
boolean showMessages)
Checks if a player can sit down.
|
static void |
sit(org.bukkit.entity.Player player)
Makes the player sit down at their current location, by spawning an arrow to sit on.
|
static void |
sit(org.bukkit.entity.Player player,
org.bukkit.block.Block block)
Makes the player sit down on the given STAIRS block, by spawning an arrow to sit on.
|
static void |
standUp(org.spigotmc.event.entity.EntityDismountEvent event)
Lets the player stand up and makes the arrow they were sitting on despawn.
|
public static boolean canSitDown(org.bukkit.entity.Player player, boolean showMessages)
player
- The player who wants to sit.showMessages
- If info messages should be shown to the player.public static void sit(org.bukkit.entity.Player player)
player
- The player that should sit down.canSitDown(Player, boolean)
public static void sit(org.bukkit.entity.Player player, org.bukkit.block.Block block)
player
- The player that should sit down.block
- The block to sit on.canSitDown(Player, boolean)
public static void standUp(org.spigotmc.event.entity.EntityDismountEvent event)
event
- The dismount event.