Simple Chairs

插件

· 作者 sardidefcon

一个简单、轻量且快速的插件,允许玩家坐在方块上

0 本站下载 0 关注 更新于 9 个月前

最新 1.0.0 · 1.21.11 · Paper / Spigot

一键开服(送7天)

适用于 Paper/Spigot 的简易插件,允许玩家坐在方块和地面上

❇️​ 本插件属于 Simple Plugins 合集,请在此查看其他相似且兼容的插件

功能

  • 玩家可以坐在方块上!
    • 默认启用楼梯和半砖
    • 你可以将任意方块添加到列表中
  • 使用 /sit 命令坐在地面上
  • 支持玩家爬行(可选)
  • 支持 WorldGuard: 在设置了 chairs-deny 标志的区域中禁止坐下
  • 所有配置均从 config.yml 读取
  • 可配置插件消息的前缀 (prefix)

Chairs

命令

  • /sit 在你当前位置坐在地面上
  • /crawl 在地面上爬行(可选)
  • /chairs reload 重新加载插件配置

要坐在已启用的方块(楼梯和半砖)上,只需右键点击即可。

权限

  • schairs.sit: 允许通过右键点击坐下(默认:true)
  • schairs.sit.command: 允许你使用 /sit 命令在任何地方坐下
  • schairs.crawl: 允许你使用 /crawl 命令(默认在配置中禁用)
  • schairs.reload:* 允许你重新加载配置(默认:OP)

配置

prefix: "&7[&6Chairs&7] &r"
stand-when-damaged: false
sneak-to-stand: true
return-on-stand: false
stand-when-block-breaks: true
allow-unsafe-sit: false
one-block-per-chair: true
sit-center-on-block: true
sit-bottom-part-only: true
sit-empty-hand-only: true
sit-max-distance: 0
sit-max-block-height: 2
features:
  crawl-enabled: true
crawl-sneak-to-stand: true
crawl-double-sneak: false
worldguard-integration: true
world-filter-enabled: false
worlds:
  - "world"
material-blacklist:
  - "LAVA"
  - "FIRE"
persist-sit-hint: false
persist-crawl-hint: false

sit-blocks:
  - "stairs"
  - "slabs"
  - "#carpets"

plugin-messages:
  no-permission: "&cYou do not have permission"
  world-not-allowed: "&cYou cannot use this in this world"
  player-only: "&cThis command can only be executed by a player"
  reload-success: "&aConfiguration reloaded successfully"
  reload-no-permission: "&cYou do not have permission to reload the configuration"
  usage: "&7Usage: &f/<command> [reload]"
  feature-disabled: "&cThis feature is disabled"

player-messages:
  sit-hint: "&6Sneak&f to get up"
  already-sitting: "&cYou're already sitting"
  chair-occupied: "&cSomeone is already sitting here"
  • stand-when-damaged, sneak-to-stand, return-on-stand, stand-when-block-breaks: 受伤时起身、潜行时起身、返回之前的位置或方块被破坏时起身(默认值:false, true, false, true)
  • allow-unsafe-sit: 允许在不安全的位置坐下(默认:false)
  • one-block-per-chair, sit-center-on-block, sit-bottom-part-only, sit-empty-hand-only: 每个方块仅限一人;居中坐下;仅底部部分;手持空手才能坐下(默认:true)
  • sit-max-distance, sit-max-block-height: 最大距离(0 = 无限制)和最大高度以坐下
  • features.crawl-enabled: 启用/禁用 /crawl 命令(默认:true)。当为 false 时,该命令将被禁用
  • crawl-sneak-to-stand, crawl-double-sneak: 潜行停止爬行;双击潜行(向下看)开始爬行(默认:true, false)
  • worldguard-integration, world-filter-enabled, worlds, material-blacklist: WorldGuard 集成、世界过滤、材质黑名单
  • sit-blocks: 楼梯、半砖、地毯。以 # 开头的条目表示禁用
  • plugin-messages, player-messages: 聊天栏消息(带前缀)和操作栏消息(无前缀)。当某个功能关闭时显示 feature-disabled。

要求

  • Java 21 (LTS)
  • 最新受支持版本的 Paper 或 Spigot 服务器

内部行为

  • 坐下功能使用带有 PDC 元数据的隐形盔甲架实现;当玩家离开或插件禁用时,盔甲架会被移除
  • WorldGuard 是可选的(软依赖)。如果存在且 worldguard-integration 为 true,插件会注册 chairs-deny 标志,并在设置为 allow 的区域中禁止坐下
  • 在插件启用和玩家加入时,任何标记为 SimpleChairs 的盔甲架(例如崩溃后遗留的)都会被移除,以防止玩家停留在“幽灵”椅子上

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源