EasyHome
这是 EasyHome,一个用于创建、删除和列出家园(homes)并传送至这些地点的插件。
命令
/sethome [name] - command.sethome
设置一个新的指定名称的家园。
/delhome [name] - command.delhome
删除指定名称的家园。
/homes - command.homes
列出所有家园。
/home [name] - command.home
传送至指定的家园。
/reloadhomes - easyhomes.reloadhomes
从文件中重新加载所有家园。这将覆盖内存中保存的家园,建议在执行此操作前先执行 /savehomes。
/savehomes - easyhomes.savehomes
将内存中的所有家园保存到 homes.yml 文件中。(服务器关闭时也会自动执行此操作)
展示
如果你好奇为什么我在发布时会跳过版本号,这只是为了展示我进行了多少调试工作(最后两位数字,例如 05 表示我为了测试新代码是否生效或 NullPointerException 是否仍然存在而重新编译插件的次数)。
已过时(但依然非常准确。)
1.2.4.05 版本的新展示即将推出。
已规划/正在开发的功能
与其他玩家共享和取消共享服务器上的家园。
/home 命令显示所有可用家园的列表/自动补全。
用于传送/删除/编辑家园的图形用户界面 (GUI)。
/edithome 用于更改家园名称(而不是先使用 /home ...,然后 /delhome ...,再 /sethome ...)。
如果你有好的想法,请通过我的 Discord 告诉我:trcloop。私信开放,或者加入我非常不活跃的服务端:(服务端即将进行重构)。
安装
没有依赖项。
只需将 .jar 文件放入你的 plugins 文件夹并重启服务器即可安装。在将 .jar 文件放入 plugins 文件夹之前不要停止服务器。
测试环境
- Paper 1.20.4
- Spigot 1.20.4
理论上也能兼容 1.20, 1.20.1, 1.20.2, 1.20.3, 1.21 和 1.21.1。
附加信息
家园仅对设置它的玩家有效
(以及能够访问服务器文件的人)
什么是家园?
家园是“传送点”,你在世界中设置它们,然后可以传送到那里。
配置
你可以在 plugins 文件夹中找到名为 EasyHome 的文件夹。其中应包含 config.yml 和 homes.yml。
config.yml
你可以编辑 config.yml:这里有几个选项可以节省存储空间并提升性能,以及一些生活质量(QoL)选项。截至 V1.2.2.xx 版本,共有三个选项。每个选项都在 config.yml 文件中有所记录。
homes.yml
家园保存在 homes.yml 中。玩家以其 UUID 表示。接下来是他们的家园。每个家园都有 X、Y、Z、Yaw(偏航角)和 Pitch(俯仰角)属性。XYZ 是家园的坐标,且为必填项。Yaw 和 Pitch 是玩家的旋转角度,非必填项,可以在配置中禁用以节省存储空间(如果禁用,则默认为 0.0)。
建议
备份
我建议偶尔备份 homes.yml 文件。如果 homes.yml 文件丢失,所有家园也将随之丢失。
重置所有家园
如果你想重置所有家园(删除所有家园),只需删除 homes.yml 文件并立即重启服务器。
致谢
由 AI 生成的图标。
EasyHome
This is EasyHome, a plugin to create, delete and list homes and teleport to them.
Commands
/sethome [name] - command.sethome
Sets a new home with the specified name.
/delhome [name] - command.delhome
Deletes a home with the specified name.
/homes - command.homes
Lists all homes.
/home [name] - command.home
Teleports you to the specified home
/reloadhomes - easyhomes.reloadhomes
Reloads all home from file. WILL OVERRIDE HOMES SAVED IN MEMORY, i recommend executing /savehomes before doing this.
/savehomes - easyhomes.savehomes
Saves all homes from memory into the homes.yml file. (Is automatically done on server shutdown as well)
Showcase
And if you wonder why i skip versions when releasing, it just shows how much debugging i've done (the last two numbers, for example 05 just tell how many times i have re-compiled the plugin to test if my new code worked or if that NullPointerException was still there)
OUTDATED (But still very accurate.)
New showcase of 1.2.4.05 coming soon.
Features i have planned/working on
Sharing and Un-Sharing homes with other players on the server.
/home shows list/autocomplete of all available homes.
GUI to teleport/delete/edit homes
/edithome to change name of home (instead of /home ..., then /delhome ..., then /sethome ...)
If you've got a few ideas, let me know on my Discord: trcloop. DMs are open or join my very inactive server: (Server getting a rework soon).
Installation
There are no dependecies.
Install it by just dropping the .jar into your plugins folder and restarting your server. Do not stop before dropping the .jar file in the plugins folder.
Tested Enviroments
- Paper 1.20.4
- Spigot 1.20.4
Should also work with 1.20, 1.20.1, 1.20.2, 1.20.3, 1.21 and 1.21.1.
Additional Info
A Home is only available for the player who has set it
(And people who can access server files)
What are homes?
Homes are "Waypoints", you set them in your world and you can teleport to them.
Config
You can find a folder called EasyHome in your plugins folder. In there should be a config.yml and homes.yml.
config.yml
You can edit the config.yml: There are a few options to save storage and save performance as well as some Quality of Life options. As of V1.2.2.xx There are three options. Every single one is documented in the config.yml file.
homes.yml
Homes are saved in the homes.yml. The players are represented by their uuid. Then there are their homes. Every home has got a X, Y, Z, Yaw and Pitch attribute. XYZ are the coordinates of the home. And are required. Yaw and Pitch is the rotation of the player. It is not required and can be disabled in the config to save storage (If disabled, it will represent a 0.0.
Recommendations
Backups
I recommend backuping the homes.yml file every now and then. If the homes.yml file is lost, all the homes are lost as well.
Reset all Homes
If you want to reset all homes (delting all homes) then just delte the homes.yml file and immediatly restart your server.
Credits
Icon for mod generated by AI.
评论 0
登录后参与评分
还没有评论,来抢沙发吧