hostprofiles
弃用通知
建议使用 staffprofiles 代替,它更实用且易于使用。
hostprofiles 是一款适用于多种平台的 Minecraft 插件,用于检测玩家是否通过特定地址加入服务器,并将其登录到完全不同的游戏配置文件(profile)中。
以下是使用示例:
如果你的服务器地址是 myserver.com,你可以将 admin.myserver.com(主机名)配置为特殊主机,并将 UUID 为 Joe 的玩家映射为另一个预定义的 UUID,使用 Admin_Joe 作为他的用户名,并拥有完全不同的皮肤(即配置文件)。然后,你只需给予 Admin_Joe 管理员权限即可。这意味着如果 Joe 通过 myserver.com 加入,他会以 Joe 的身份登录,作为普通玩家游玩;但如果他通过 admin.myserver.com 登录,则会以 Admin_Joe 的身份登录,并可以执行管理任务。
你可以配置以下内容:
- 尝试登录的玩家(由其 UUID 标识)将拥有的配置文件(UUID、名称和皮肤)
- 当没有该玩家 UUID 的条目时,是否将其踢出服务器
- 每个主机名的专属 MOTD(服务器公告)
- 玩家是否保留其原始皮肤,或使用配置文件中的皮肤
平台支持
目前,Spigot 插件仅适用于 1.18.1,Paper 支持 1.18.1 及以上版本。支持的平台包括 Paper 和 Spigot。
如果你使用的是 Paper,则必须使用 Paper 版本的构建文件,Spigot 版本的构建文件将无法正常工作。
技术支持
Spigot 和 Paper 版本的构建文件目前仍非常不稳定,因为它们使用了各种反射技巧来更改游戏配置文件并获取主机名。由于 Paper API 提供了在玩家加入时设置游戏配置文件的方法,因此其中的“黑客”手段少一些,我认为它更可取。Velocity 版本仅使用 API,因此是最稳定的。
Velocity > Paper > Spigot
问题或功能请求请在 GitHub 上以 Issue 形式提交。如果你有任何问题或希望获得快速支持,可以在我的 Discord 服务器 上进行交流。
hostprofiles
Deprecation notice
Please consider using staffprofiles instead, which is more practical and easier to use.
hostprofiles is a Minecraft plugin for various platforms that detects if a player joins the server on a specific address
and then logs them into a completely different game profile.
Here is a usage example:
If your server address were myserver.com, you could configure admin.myserver.com (the host) as a special host and map
the player with the UUID of Joe to be logged with another, predefined UUID, use Admin_Joe as his username and have a
completely different skin (the profile). You could then only give Admin_Joe administrator privileges. This means that if
Joe joins using myserver.com, he is logged in as Joe and could play as a normal player, but if he logs into
admin.myserver.com is logged in as Admin_Joe and can do administrative tasks.
You can configure:
- Which profile (UUID, name and skin) a player trying to log in (identified by his UUID) is going to have
- If a player gets kicked if there is no entry for his UUID
- A special MOTD for every host
- If a player should keep his original skin, or use a profile skin
Platforms
Right now, the spigot plugin is only available for 1.18.1, Paper works on 1.18.1 and above. Supported platforms are Paper and Spigot.
If you use Paper you MUST also use the build for Paper, the spigot build is NOT going to work.
Support
The Spigot and Paper builds are still very unstable, as they use various reflection tricks to change the game profile
and retrieve the hostname. Because the Paper API provides a method to set the game profile on join, there is one less
hack in there, so I would consider it preferable. The Velocity version uses only API, therefor is the most stable.
Velocity > Paper > Spigot
Problems or feature requests should be reported as issues on GitHub. If you have any questions or would like to receive
quick support, you can do so on the my discord server.
评论 0
登录后参与评分
还没有评论,来抢沙发吧