简易家园

简易家园

一个简单的适用于fabric的/home模组

工具

SimpleHomes

一个小巧简单的模组,为所有玩家添加一个唯一的家

必需模组

此模组依赖于 BFAPI

命令

名称 权限 OpLevel 描述
sethome simplehomes.use 0 将玩家的家设置在其当前位置
home simplehomes.use 0 将玩家传送至其家

配置

配置文件位于配置目录下的 simplehomes.json

字段 类型 描述 默认值
homePermission String 用于判断玩家是否可以使用 /home 的权限 simplehomes.use
homeSetMessage Text 玩家运行 /sethome 时发送给玩家的文本 Your home has been set
homeStorage JsonObject 存储家位置的地方 {}
warmup Integer 玩家在传送前必须保持静止的时间(秒) 5
noHomeMessage Text 玩家没有可返回的家时发送给玩家的消息 You do not have a home set!
forceHomeToBeBed Boolean 是否应将所有的家绑定到玩家的重生点 false
failedToTeleportDueToMovement Text 玩家在传送期间移动时发送给玩家的消息 Teleport to home canceled as you moved!
sendTextViaActionBar Boolean 消息应通过动作栏还是聊天栏发送给玩家 true
teleportSucceeded Text 玩家传送至其家时发送给玩家的消息 Teleported to your home!
teleportWait Text 玩家运行 /home 且预热开始时发送给玩家的消息 Teleporting shortly, please do not move
cooldown Integer 玩家两次 /home 请求之间的时间(秒) 30
cooldownMessage Text 玩家在冷却期间尝试使用 /home 时发送给玩家的文本 You are on cooldown!
{
  "homePermission": "simplehomes.use",
  "homeSetMessage": {
    "color": "gold",
    "text": "Your home has been set"
  },
  "homeStorage": {},
  "warmup": 5,
  "noHomeMessage": {
    "color": "red",
    "text": "You do not have a home set!"
  },
  "forceHomeToBeBed": false,
  "failedToTeleportDueToMovement": {
    "color": "red",
    "text": "Teleport to home canceled as you moved!"
  },
  "sendTextViaActionBar": true,
  "teleportSucceeded": {
    "color": "gold",
    "text": "Teleported to your home!"
  },
  "teleportWait": {
    "color": "gold",
    "text": "Teleporting shortly, please do not move"
  },
  "cooldown": 30,
  "cooldownMessage": {
    "color": "red",
    "text": "You are on cooldown!"
  }
}

链接