
坐下
在矿洞中忙碌了一整天后,你是否曾想过坐下来休息一下?
既然周围到处都是台阶,为何不直接手持空物品右键点击就能坐下呢。
此插件是一个轻量级的小型插件,旨在允许玩家坐在台阶上(或者如果你设置的话,也可以坐在其他方块上)。
配置
配置文件不是必须的,但你可以添加几乎任何类型的方块,台阶和半砖也能很好地工作。
这是 链接 到 Bukkit 材质名称列表,大多数方块都能正常工作,请勿使用物品名称,如 "BOW" 等。
默认的 config.yml 文件列出了所有当前的台阶类型:
Chairs:
- WOOD_STAIRS
- SPRUCE_WOOD_STAIRS
- JUNGLE_WOOD_STAIRS
- BIRCH_WOOD_STAIRS
- SANDSTONE_STAIRS
- COBBLESTONE_STAIRS
- BRICK_STAIRS
- SMOOTH_STAIRS
- NETHER_BRICK_STAIRS
- QUARTZ_STAIRS
- ACACIA_STAIRS
- DARK_OAK_STAIRS
还有两个其他选项可供设置。
UpsideDown: true or false
此选项用于检查倒置的椅子,如果设置为 "false"(默认值),则所有倒置的椅子都将被忽略。
Range: 0
此设置是玩家可以距离椅子多远而坐下的方块数量。默认数字为 "0",意味着范围由 Bukkit 检测到的玩家点击极限决定,因此范围检查会被忽略。任何大于零的数字将是玩家可以与椅子交互的最大距离。
安装
只需将 ChairStairs.jar 文件复制到你的 plugins 文件夹,然后执行 /reload 命令重载插件或重启服务器即可。
权限
无需设置任何权限,默认配置允许使用所有台阶作为椅子。
命令
目前此插件没有使用任何命令。
使用方法
要坐下,只需手持空物品右键点击一个台阶方块(如果你在 config.yml 中添加了其他方块,也可以点击那些方块)。你会收到一条消息,提示你按下已设置为“潜行”键的按键以离开(站起来),你将回到坐下前所在的方块位置。
注意事项
如果你坐了一段时间,用于让你看起来像坐着的箭矢将会消失,新的箭矢将被放置,你将坐在上面,并且会显示一条新的“离开”消息。
如果你在坐着时退出游戏,重新进入时你会再次呈现坐姿,但不会重生箭矢来让你重新坐下,也无法返回到你“离开”时所站立的最后一个方块,而是会被放置在用作椅子的方块附近。
如果你手持一个方块点击一个上方有方块的椅子方块,直到你离开该方块之前,你会受到伤害。
此插件设计为小巧且对服务器资源占用极少。


Sit Down
Ever wanted to sit down and rest after a long day in the mines?
With stairs every where, why not just right-click with an empty hand and you'll be sitting.
This plugin is a small and lite weight plugin designed to allow your players to sit down on stairs (or other blocks if you set them).
Configuration
Configuration isn't required but you can add almost any block type, and steps/slabs work well too.
This is a link to the list of Bukkit Material Names, most blocks will work, don't use items names, like "BOW", etc.
The default config.yml file lists all the current stair types:
Chairs:
- WOOD_STAIRS
- SPRUCE_WOOD_STAIRS
- JUNGLE_WOOD_STAIRS
- BIRCH_WOOD_STAIRS
- SANDSTONE_STAIRS
- COBBLESTONE_STAIRS
- BRICK_STAIRS
- SMOOTH_STAIRS
- NETHER_BRICK_STAIRS
- QUARTZ_STAIRS
- ACACIA_STAIRS
- DARK_OAK_STAIRS
There are also two other options you may set.
UpsideDown: true or false
This option checks for upside down chairs, and if it's set to "false" (which is the default), then all upside down chairs are ignored.
Range: 0
This setting is the number of blocks away a player can be to sit in a chair. The default number is "0" which means the range is the limit that Bukkit detects the player's click, so the range check is ignored. Any number above zero will be the maximum blocks away the player can interact with the chair.
Installation
To use simply copy the ChairStairs.jar file to your plugins folder then /reload your plugins or restart your server.
Permissions
There are no permissions to set and the default configuration will allow any stairs to be used as chairs.
Commands
There are currently no commands used with this plugin.
Use
To sit down simply right-click on a stair block (or other blocks if you add them to the config.yml) with an empty hand, you will get a message that tells you to click the key you have assigned as your "sneak" key to dismount (stand up), you will be returned to the block that you came before you sat down.
Notes
If you sit for a while the arrow used to make you appear to be sitting will despawn, a new arrow will be placed, and you will be seated on it, and a new "dismount" message will be displayed.
If you log out while sitting, you will appear sitting again, but you won't respawn an arrow to be re-seated, and you won't be able to return to the last block you were on when you "dismount", you will instead be placed near the block used as the chair.
If you click on a chair block with a block above it you will take damage until you dismount the block.
This plugin was designed to be small and lite on the server.

评论 0
登录后参与评分
还没有评论,来抢沙发吧