Allows sitting everywhere, on the ground, on any configured block.
Finds the safest location to put the player when standing up.
Restores player to their original location when standing up.
Health regeneration while sitting.
Hand swing animaiton played when sitting down.
Configurable distance you can sit from.
WorldGuard region flag to enable sitting.
Simplicity, it just works as it should, no frills.
WorldGuard Flags: sittable - allow sitting in this region, allow by default.
Code (YAML):
# Sit sit:
distance: 3.5
# Distance a player needs to be within to sit on a block. animation:
block: true
# Should play swing hand animation when sitting on a block. ground: false
# Should play swing hand animation when sitting on the ground. regeneration:
block: -1
# Regeneration amplifier, 0 is normal regeneration, -1 to disable. ground: -1
# Regeneration amplifier, 0 is normal regeneration, -1 to disable. offset:
below: 0.0
# Modify how high the player sits. behind: 0.0
# Modify how close the players back is to stairs. materials: # https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html -
"(.*)_STAIRS" -
"(.*)_SLAB" -
"(.*)_CARPET" -
"PLAYER_HEAD" # Legacy support -
"(.*)SLAB2" -
"(.*)CARPET" -
"(.*)STEP" -
"SKULL"
# Stand stand:
return: true
# Should the player be teleported to where their location before sitting.
# Messages messages: # Set to "" to disable. prefix: "&aSittable &8» &r" sit-failure-unable: "Unable to sit here." sit-failure-worldguard: "Not allowed to sit in this region." sit-failure-distance: "" sit-success: "" stand-success: "" plugin-reload: "Reloaded config file." plugin-permission: "No permission."
Commands: /sit - Sit on the ground
/sittable - Plugin info
/sittable reload - Reload command