
SpawnBuildRights 基于原版出生点保护机制进行了扩展。原版机制中,除了管理员(operators)之外,所有人都无法在出生点附近进行建造。而使用 SpawnBuildRights 后,每个人从进入游戏的第一分钟起就可以自由使用出生点区域;只要玩家的游戏时长达到你设定的时间,他们便可以在该区域进行建造。此外,这些建造内容还会受到爆炸、怪物、火焰以及来自外部的任何破坏行为的保护,无论破坏者是谁。

工作原理
- 任何人从第一分钟起就可以在出生点区域内走动、交易、睡觉、开门,并使用箱子和工作台。
- 一旦玩家的游戏时长达到你设定的时间,他们就可以在该区域进行建造,包括放置方块、使用桶和更改物品展示框等。游戏时长由游戏自身统计,因此安装插件之前所花费的时间也会计算在内。
- 如果玩家过早尝试建造,系统会用一句话告知他们还需要等待多长时间,执行
/sbr 命令也会显示相同的信息。
- 管理员可以使用
/sbr grant 提前授予建造权限,使用 /sbr revoke 收回权限,并通过 /sbr history 查看谁做出了何种决定及其原因。
保护机制
在 SpawnBuildRights 划定的区域内,它会阻止以下所有行为,无论操作者是谁。每项保护都有独立的开关,且默认全部开启。
| 停止 |
开关 |
| 苦力怕炸毁方块 |
explosions |
| TNT 和 TNT 矿车炸毁方块 |
explosions |
| 末影水晶炸毁方块 |
explosions |
| 床和重生锚在错误的维度爆炸 |
explosions |
| 凋灵及其头颅炸毁方块 |
explosions |
| 恶魂火球炸毁方块 |
explosions |
| 爆炸引发火灾 |
explosions |
| 外部爆炸引爆内部 TNT |
explosions |
| 末影人拾取或放置方块 |
hostile-mob-changes |
| 僵尸和卫道士破坏门 |
hostile-mob-changes |
| 蠹虫隐藏在石头中或从石头中跳出 |
hostile-mob-changes |
| 凋灵和末影龙破坏它们触碰的方块 |
hostile-mob-changes |
| 敌对生物践踏农田或海龟蛋 |
hostile-mob-changes |
| 敌对生物的箭矢破坏装饰陶罐、紫颂花或滴水石锥 |
hostile-mob-changes |
| 烈焰人和恶魂火球引发火灾 |
hostile-mob-changes |
| 火焰箭矢引发火灾或引爆 TNT,包括玩家射出的 |
hostile-mob-changes |
| 物品展示框、画和盔甲架被生物破坏 |
display-damage |
| 物品展示框、画和盔甲架被爆炸和烟花破坏 |
display-damage |
| 物品展示框、画和盔甲架被火、岩浆或闪电破坏 |
display-damage |
| 物品展示框、画和盔甲架被没有玩家在后面的箭或药水破坏 |
display-damage |
| 物品展示框、画和盔甲架被掉落的铁砧或滴水石锥破坏 |
display-damage |
| 方块被烧毁 |
fire-damage |
| 火焰蔓延进入 |
fire-damage |
| 岩浆引发火灾 |
fire-damage |
| 闪电引发火灾 |
fire-damage |
| 火焰引爆 TNT |
fire-damage |
| 来自外部的沙子、砾石、混凝土粉末、铁砧和其他掉落方块落入内部 |
falling-blocks |
| 来自外部的水流流入 |
fluid-flow |
| 来自外部的岩浆流入 |
fluid-flow |
| 来自外部的龙蛋传送进入 |
fluid-flow |
| 外部的活塞将方块推入区域或伸入该区域 |
pistons |
| 外部的活塞移动或破坏内部的方块 |
pistons |
| 外部的粘性活塞将方块拉出 |
pistons |
| 外部的发射器倒入水 |
dispensers |
| 外部的发射器倒入岩浆 |
dispensers |
| 外部的发射器在内部放置火、TNT、方块或骨粉 |
dispensers |
| 外部的发射器射入箭、火焰弹、雪球、鸡蛋、药水和烟花 |
dispensers |
| 外部生长的树木和巨型蘑菇蔓延进入 |
growth |
| 在外部使用骨粉使草和花朵蔓延进入 |
growth |
| TNT 和 TNT 矿车通过传送门到达 |
portal-arrivals |
| 凋灵头颅通过传送门到达 |
portal-arrivals |
| 恶魂、烈焰人和龙息火球通过传送门到达 |
portal-arrivals |
| 箭、三叉戟、羊驼唾液、潜影贝子弹和伤害性药水通过传送门到达 |
portal-arrivals |
| 带有星星的火火箭通过传送门到达 |
portal-arrivals |
| 沙子和其他掉落方块通过传送门到达 |
portal-arrivals |
| 没有建筑权限的玩家通过桶倒入水或岩浆 |
Build rights |
| 玩家在没有建筑权限的情况下点燃火或TNT | 建筑权限 |

要求
- Paper、Purpur 或 Folia 26.3,以及 Java 25。在 Folia 上,所有保护机制均有效,除了传送门抵达时的保护。
安装
将 jar 文件放入服务器的 plugins 文件夹中,在 server.properties 中设置 spawn-protection=0,然后重启服务器。授权与撤销记录保存在 SQLite 数据库中,无需额外配置;也支持 PostgreSQL、MySQL 或 MariaDB。
文档 涵盖了每一项设置、命令和保护机制,并为每个开关提供了启用前后的对比图片。

SpawnBuildRights builds on vanilla spawn protection. Vanilla stops everyone except operators building near spawn. With SpawnBuildRights everyone can use spawn from their first minute, and each player can build there once they have played for as long as you choose. The build is also protected from explosions, mobs, fire and anything that reaches in from outside, whoever is behind it.

How it works
- Anyone can walk around spawn, trade, sleep, open doors and use chests and workstations from their first minute.
- Building there, from placing blocks to using buckets and changing item frames, opens up once a player has played for the time you set. Playtime is the game's own statistic, so time played before you install the plugin counts.
- A player who tries too early is told in one sentence how much longer they need, and
/sbr tells them the same.
- Admins can grant build rights early with
/sbr grant, take them away with /sbr revoke, and see who decided what and why with /sbr history.
Protections
Inside the region SpawnBuildRights stops everything below, whoever is behind it. Each protection has its own switch, and every one is on by default.
| Stops |
Switch |
| Creepers blowing up blocks |
explosions |
| TNT and TNT minecarts blowing up blocks |
explosions |
| End crystals blowing up blocks |
explosions |
| Beds and respawn anchors exploding in the wrong dimension |
explosions |
| The wither and its skulls blowing up blocks |
explosions |
| Ghast fireballs blowing up blocks |
explosions |
| Explosions lighting fires |
explosions |
| An explosion outside setting off TNT inside |
explosions |
| Endermen picking up or placing blocks |
hostile-mob-changes |
| Zombies and vindicators breaking doors |
hostile-mob-changes |
| Silverfish hiding in stone or bursting out of it |
hostile-mob-changes |
| The wither and the ender dragon breaking blocks they touch |
hostile-mob-changes |
| Hostile mobs trampling farmland or turtle eggs |
hostile-mob-changes |
| Hostile mobs' arrows breaking decorated pots, chorus flowers or pointed dripstone |
hostile-mob-changes |
| Blaze and ghast fireballs lighting fires |
hostile-mob-changes |
| Flaming arrows lighting fires or setting off TNT, a player's included |
hostile-mob-changes |
| Item frames, paintings and armour stands broken by mobs |
display-damage |
| Item frames, paintings and armour stands broken by explosions and fireworks |
display-damage |
| Item frames, paintings and armour stands broken by fire, lava or lightning |
display-damage |
| Item frames, paintings and armour stands broken by arrows or potions with no player behind them |
display-damage |
| Item frames, paintings and armour stands broken by falling anvils or dripstone |
display-damage |
| Blocks burning away |
fire-damage |
| Fire spreading in |
fire-damage |
| Lava lighting fires |
fire-damage |
| Lightning lighting fires |
fire-damage |
| Fire setting off TNT |
fire-damage |
| Sand, gravel, concrete powder, anvils and other falling blocks from outside landing inside |
falling-blocks |
| Water flowing in from outside |
fluid-flow |
| Lava flowing in from outside |
fluid-flow |
| A dragon egg teleporting in from outside |
fluid-flow |
| Pistons outside pushing blocks in or extending into the region |
pistons |
| Pistons outside moving or breaking blocks inside |
pistons |
| Sticky pistons outside pulling blocks out |
pistons |
| Dispensers outside pouring water in |
dispensers |
| Dispensers outside pouring lava in |
dispensers |
| Dispensers outside placing fire, TNT, blocks or bone meal inside |
dispensers |
| Arrows, fire charges, snowballs, eggs, potions and fireworks fired in by dispensers outside |
dispensers |
| Trees and huge mushrooms grown outside spreading in |
growth |
| Bone meal used outside spreading grass and flowers in |
growth |
| TNT and TNT minecarts arriving through a portal |
portal-arrivals |
| Wither skulls arriving through a portal |
portal-arrivals |
| Ghast, blaze and dragon fireballs arriving through a portal |
portal-arrivals |
| Arrows, tridents, llama spit, shulker bullets and harmful potions arriving through a portal |
portal-arrivals |
| Firework rockets with stars arriving through a portal |
portal-arrivals |
| Sand and other falling blocks arriving through a portal |
portal-arrivals |
| Water or lava poured from a bucket by a player without build rights |
Build rights |
| Fire or TNT lit by a player without build rights |
Build rights |

Requirements
- Paper, Purpur or Folia 26.3, and Java 25. On Folia every protection works except portal arrivals.
Install
Put the jar in your server's plugins folder, set spawn-protection=0 in server.properties and restart. Grants and revocations are kept in SQLite with nothing to set up, or in PostgreSQL, MySQL or MariaDB.
The documentation covers every setting, command and protection, with a before and after picture for each switch.
评论 0
登录后参与评分
还没有评论,来抢沙发吧