Skip to content

JoshuaPHYT/StairSeat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StairSeat

Sit on the stair block

Feature

You can sit on the stair block

How to use

Install this plugin and run your server. place stair block and tap (or click) it. To cancel, jump or sneak.

Command

/sit - Toggle to sit on the stair block. To use this command, you must set register-sit-command in the config.yml to true (Permission: stairseat.toggle)

Settings

You can customize some settings. To edit, open config.yml in plugin folder.

General

  • apply-worlds - Enable to use stairs as seat for each worlds or all worlds. To enable all worlds, set value to true , or if you want to enable specific worlds, type the worlds' name. (To set multiple worlds, separate with comma like world1, world2)

  • allow-seat-high-height - Allow player to sit on seat if its height is higher than player

  • allow-seat-upsidedown - Allow player to sit on upside-down stairs

  • allow-seat-while-sneaking - Allow to sit when player is sneaking

  • stand-up-when-break-block - Player who sit on their stairs will stand up when break

  • disable-damage-when-sit - While player is sitting on the stair, will not be damaged from all causes

  • register-toggle-command - Register toggle command

  • toggle-command-label - Command label will be set to this value (default: /sit)

  • allow-only-right-click - Allow players to sit by only right click

  • send-tip-when-sit - This massage will be sent when player sit

    • @b - block's name
    • @x - x coordinates
    • @y - y coordinates
    • @z - z coordinates
  • try-to-sit-already-inuse - Send message when trying to seat on stair which is already used

    • @b - block's name
    • @p - sitting player's name

Developer Documentation

  • If you check whether player is sitting on the stair, please call method isSitting from StairSeat class
/** @var \pocketmine\Player $player */
isSitting(Player $player) : bool

About

Let's sit down on the stair block

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%