Proxy-Portals
一款 Minecraft 代理插件,允许玩家通过下界传送门在不同服务器之间进行传送。
安装
此插件在后台运行。无需额外的代理插件。只需将 jar 文件放入任何你想要使用传送门的服务器的 plugins 文件夹中,然后重启服务器即可。(注意,此插件不需要安装在玩家要传送到的服务器上!如果你有一个中央大厅服务器并在那里配置了所有传送门,那么只有该服务器需要安装此插件。)
用法
要将普通传送门注册为用于切换服务器的传送门,请使用命令 /register-server *server*,其中将 *server* 替换为你希望传送门将你传送到目标服务器的名称。*server* 参数必须与你 velocity.toml 文件中显示的名称完全一致(你可以使用 /server 命令查看可用服务器列表及其确切名称)。随后系统会提示你走进你想注册的传送门。完成操作后,整个传送门(大小和形状无关紧要)将被注册并重定向玩家到该服务器。
多个传送门可以注册到同一个服务器!
若要移除某个传送门的注册而不删除整个配置文件,请使用命令 /deregister-server *server*,其中将 *server* 替换为你想要取消注册的服务器名称。运行此命令后,所有注册在该 *server* 下的传送门将恢复为普通传送门。
免责声明:
我使用递归函数来注册玩家踏入的任意传送门的全部区域。对于非常大的传送门,注册过程不会立即完成,服务器可能会抛出线程转储(thread dump)。这是正常现象,插件仍能完美运行。
注意:
我强烈建议在你配置传送门的任何服务器的 config.yml 中将 lobby-mode 设置为 true。这将防止玩家因为出生在传送门内而被锁在服务器之外。默认值为 false,因为此选项会在玩家加入时将所有人发送到服务器出生点,无论他们当前在世界中的位置如何。
还有一个 no-player-die 配置选项。当设置为 true 时,这将防止玩家因受到伤害、溺水或饥饿而死亡。此选项适用于大厅类型的世界。
Proxy-Portals
A minecraft proxy plugin that allows players to transport between servers with nether portals.
Installation
This plugin works on the backend. No need for a proxy plugin. Simply place the jar file in the plugins folder of any server you want to use portals in, and restart your server. (Note, this plugin does not need to be on the server the player is teleporting to! If you have one central lobby server that has all of the portals, that is the only server that needs the plugin.)
Usage
To register an ordinary into a server switching portal, use the command /register-server *server*, in which you replace *server* with the name of the server you want the portal to transport you to. The *server* parameter must be the exact same that it appears in your velocity.toml (you can find a list of available servers and their exact names with the /server command). You will be promped to walk into the portal you want to register. After you do so, the entire portal (size and shape doesn't matter) will be registered to redirect the player to that server.
Multiple portals can be registered to one server!
To remove a registration from a portal without deleting your entire configuration, use the command /deregister-server *server* in which you replace *server* with the name of ther server you want to deregister. After running this command, all portals registered under *server* will return to regular portals.
Disclaimer:
I use a recursive function to register the entirety of any portal the player steps into. With very large portals, the registration will not be immediate, and the server will throw a thread dump. This is normal, the plugin will still work perfectly fine.
NOTE:
I highly highly recommend going into the config.yml and changing lobby-mode to true on any server that you configure portals on. This will prevent players from being locked out of a server because they spawn in a portal. It is false by default because this option sends everyone who joins the server to the server spawn when they join, no matter where the are in the world.
There is also a no-player-die configuration option. When true, this will prevent the player from dying of damage, drowning, or starving. This should be used for lobby-type worlds.
评论 0
登录后参与评分
还没有评论,来抢沙发吧