Geyser——一个能让基岩版游玩Java服务器的插件
前言
我是一名服务器技术员,最初开服的原因是因几个小伙伴聚在一起,无聊尝试着开服
于是我们的一个基岩版BDS小服便这么开起来了,但是久而久之,基岩版服务器的弊端也开始展现出来。
稳定性差,优化差,玩法少,官服插件拓展基本没有,全靠BDX,EZ撑着。
玩法少还是次要的,最主要的是一个存档玩不到一个月便得换,这个问题让我们崩溃
直到我发现了这款插件,让我尝试开着Java服,给基岩版玩家玩
并且效果出乎意料得好。
·····················································································
注意事项
1.该插件不适用于模组服(你不会想让基岩版玩家玩上模组吧hhh)
2.该插件支持Bukkit、Spigot、Sponge、Velocity、Bungeecord等主流核心
3.插件目前有一些BUG(基岩版玩家用不了附魔台),请使用前做好心理准备
4.使用本插件进服的基岩版玩家,可以使用Java特性(本质就是JE服)
·····················································································
使用方法
想要完美的使用间歇泉(Geyser),其实有两个插件需要安装
1.Geyser本体插件
2.FloodGate插件
首先,将下载的Geyser-xxx.jar丢入服务端的plugins文件夹
(xxx为你的服务端核心类型,下载时可选择,独立版文件名是Geyser.jar)
接着,启动一遍服务器,等插件生成了config后再关闭服务器
在plugins/Geyser-xxx文件夹内找到config.yml文件,并打开(这里我推荐使用Notepad++)
- # --------------------------------
- # Geyser Configuration File
- #
- # A bridge between Minecraft: Bedrock Edition and Minecraft: Java Edition.
- #
- # GitHub: https://github.com/GeyserMC/Geyser
- # Discord: https://discord.geysermc.org/
- # --------------------------------
- bedrock:
- # The IP address that will listen for connections.
- # There is no reason to change this unless you want to limit what IPs can connect to your server.
- address: 0.0.0.0
- # The port that will listen for connections
- port: 19132
- # The MOTD that will be broadcasted to Minecraft: Bedrock Edition clients. Irrelevant if "passthrough-motd" is set to true
- motd1: "GeyserMC"
- motd2: "Another GeyserMC forced host."
- remote:
- # The IP address of the remote (Java Edition) server
- address: 127.0.0.1
- # The port of the remote (Java Edition) server
- port: 25565
- # Authentication type. Can be offline, online, or floodgate (see https://github.com/GeyserMC/Geyser/wiki/Floodgate).
- auth-type: online
- # Floodgate uses encryption to ensure use from authorised sources.
- # This should point to the public key generated by Floodgate (Bungee or CraftBukkit)
- # You can ignore this when not using Floodgate.
- floodgate-key-file: public-key.pem
- ## the Xbox/MCPE username is the key for the Java server auth-info
- ## this allows automatic configuration/login to the remote Java server
- ## if you are brave/stupid enough to put your Mojang account info into
- ## a config file
- #userAuths:
- # bluerkelp2: # MCPE/Xbox username
- # email: not_really_my_email_address_mr_minecrafter53267@gmail.com # Mojang account email address
- # password: "this isn't really my password"
- #
- # herpderp40300499303040503030300500293858393589:
- # email: herpderp@derpherp.com
- # password: dooooo
- # Bedrock clients can freeze when opening up the command prompt for the first time if given a lot of commands.
- # Disabling this will prevent command suggestions from being sent and solve freezing for Bedrock clients.
- command-suggestions: true
- # The following two options enable "ping passthrough" - the MOTD and/or player count gets retrieved from the Java server.
- # Relay the MOTD from the remote server to Bedrock players.
- passthrough-motd: false
- # Relay the player count and max players from the remote server to Bedrock players.
- passthrough-player-counts: false
- # Enable LEGACY ping passthrough. There is no need to enable this unless your MOTD or player count does not appear properly.
- # This option does nothing on standalone.
- legacy-ping-passthrough: false
- # How often to ping the remote server, in seconds. Only relevant for standalone or legacy ping passthrough.
- # Increase if you are getting BrokenPipe errors.
- ping-passthrough-interval: 3
- # Maximum amount of players that can connect
- max-players: 100
- # If debug messages should be sent through console
- debug-mode: false
- # Thread pool size
- general-thread-pool: 32
- # Allow third party capes to be visible. Currently allowing:
- # OptiFine capes, LabyMod capes, 5Zig capes and MinecraftCapes
- allow-third-party-capes: true
- # Allow third party deadmau5 ears to be visible. Currently allowing:
- # MinecraftCapes
- allow-third-party-ears: false
- # Allow a fake cooldown indicator to be sent. Bedrock players do not see a cooldown as they still use 1.8 combat
- show-cooldown: true
- # The default locale if we dont have ** the client requested. Uncomment to not use the default system language.
- # default-locale: en_us
- # Configures if chunk caching should be enabled or not. This keeps an individual
- # record of each block the client loads in. While this feature does allow for a few
- # things such as block break animations to show up in creative mode and among others,
- # it is HIGHLY recommended you disable this on a production environment as it can eat
- # up a lot of RAM. However, when using the Spigot version of Geyser, support for features
- # or implementations this allows is automatically enabled without the additional caching as
- # Geyser has direct access to the server itself.
- cache-chunks: false
- # Bedrock prevents building and displaying blocks above Y127 in the Nether -
- # enabling this config option works around that by changing the Nether dimension ID
- # to the End ID. The main downside to this is that the sky will resemble that of
- # the end sky in the nether, but ultimately it's the only way for this feature to work.
- above-bedrock-nether-building: false
- # bStats is a stat tracker that is entirely anonymous and tracks only basic information
- # about Geyser, such as how many people are online, how many servers are using Geyser,
- # what OS is being used, etc. You can learn more about bStats here: https://bstats.org/.
- # https://bstats.org/plugin/server-implementation/GeyserMC
- metrics:
- # If metrics should be enabled
- enabled: true
- # UUID of server, don't change!
- uuid: generateduuid
- # DO NOT TOUCH!
- config-version: 3
复制代码 部分主要配置详解:bedrock一栏中的address是基岩版的IP,port是基岩版的端口
remotd一栏中的address是Java的进服IP(若不使用独立版Geyser则可以不改这项),port是端口
auth-type是登陆模式
一共有三种登陆模式:online(正版),offline(离线/盗版),floodgate(稍后会讲到)
登陆模式需要和你服务器设置的登陆模式一致
max-player为基岩版进服允许的最大人数
设置完后即可开服
Java端使用服务器的IP端口
基岩版端使用bedrock一栏设置好的IP端口
这时你可能会发现一个问题——基岩版玩家名字里的空格怎么办!!
这时候我们就要用到之前提到的Floodgate插件了
使用方法很简单,关服,把插件丢进plugins,重启获取配置文件
然后到plugin/floodgate目录下找到config
打开,把里面第一个选项的"*"里的*删了,保存
再打开Geyser的配置文件,auth-type一项填floodgate即可
重启服务器,你就会发现基岩版玩家名字里的空格
被自动替换成下划线 _ 了!
图片展示
以下都是我服实拍