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++)
config.yml (4.74 KB, 下载次数: 43)
  1. # --------------------------------
  2. # Geyser Configuration File
  3. #
  4. # A bridge between Minecraft: Bedrock Edition and Minecraft: Java Edition.
  5. #
  6. # GitHub: https://github.com/GeyserMC/Geyser
  7. # Discord: https://discord.geysermc.org/
  8. # --------------------------------

  9. bedrock:
  10.   # The IP address that will listen for connections.
  11.   # There is no reason to change this unless you want to limit what IPs can connect to your server.
  12.   address: 0.0.0.0
  13.   # The port that will listen for connections
  14.   port: 19132
  15.   # The MOTD that will be broadcasted to Minecraft: Bedrock Edition clients. Irrelevant if "passthrough-motd" is set to true
  16.   motd1: "GeyserMC"
  17.   motd2: "Another GeyserMC forced host."
  18. remote:
  19.   # The IP address of the remote (Java Edition) server
  20.   address: 127.0.0.1
  21.   # The port of the remote (Java Edition) server
  22.   port: 25565
  23.   # Authentication type. Can be offline, online, or floodgate (see https://github.com/GeyserMC/Geyser/wiki/Floodgate).
  24.   auth-type: online

  25. # Floodgate uses encryption to ensure use from authorised sources.
  26. # This should point to the public key generated by Floodgate (Bungee or CraftBukkit)
  27. # You can ignore this when not using Floodgate.
  28. floodgate-key-file: public-key.pem

  29. ## the Xbox/MCPE username is the key for the Java server auth-info
  30. ## this allows automatic configuration/login to the remote Java server
  31. ## if you are brave/stupid enough to put your Mojang account info into
  32. ## a config file
  33. #userAuths:
  34. #  bluerkelp2: # MCPE/Xbox username
  35. #    email: not_really_my_email_address_mr_minecrafter53267@gmail.com # Mojang account email address
  36. #    password: "this isn't really my password"
  37. #
  38. #  herpderp40300499303040503030300500293858393589:
  39. #    email: herpderp@derpherp.com
  40. #    password: dooooo

  41. # Bedrock clients can freeze when opening up the command prompt for the first time if given a lot of commands.
  42. # Disabling this will prevent command suggestions from being sent and solve freezing for Bedrock clients.
  43. command-suggestions: true

  44. # The following two options enable "ping passthrough" - the MOTD and/or player count gets retrieved from the Java server.
  45. # Relay the MOTD from the remote server to Bedrock players.
  46. passthrough-motd: false
  47. # Relay the player count and max players from the remote server to Bedrock players.
  48. passthrough-player-counts: false
  49. # Enable LEGACY ping passthrough. There is no need to enable this unless your MOTD or player count does not appear properly.
  50. # This option does nothing on standalone.
  51. legacy-ping-passthrough: false
  52. # How often to ping the remote server, in seconds. Only relevant for standalone or legacy ping passthrough.
  53. # Increase if you are getting BrokenPipe errors.
  54. ping-passthrough-interval: 3

  55. # Maximum amount of players that can connect
  56. max-players: 100

  57. # If debug messages should be sent through console
  58. debug-mode: false

  59. # Thread pool size
  60. general-thread-pool: 32

  61. # Allow third party capes to be visible. Currently allowing:
  62. # OptiFine capes, LabyMod capes, 5Zig capes and MinecraftCapes
  63. allow-third-party-capes: true

  64. # Allow third party deadmau5 ears to be visible. Currently allowing:
  65. # MinecraftCapes
  66. allow-third-party-ears: false

  67. # Allow a fake cooldown indicator to be sent. Bedrock players do not see a cooldown as they still use 1.8 combat
  68. show-cooldown: true

  69. # The default locale if we dont have ** the client requested. Uncomment to not use the default system language.
  70. # default-locale: en_us

  71. # Configures if chunk caching should be enabled or not. This keeps an individual
  72. # record of each block the client loads in. While this feature does allow for a few
  73. # things such as block break animations to show up in creative mode and among others,
  74. # it is HIGHLY recommended you disable this on a production environment as it can eat
  75. # up a lot of RAM. However, when using the Spigot version of Geyser, support for features
  76. # or implementations this allows is automatically enabled without the additional caching as
  77. # Geyser has direct access to the server itself.
  78. cache-chunks: false

  79. # Bedrock prevents building and displaying blocks above Y127 in the Nether -
  80. # enabling this config option works around that by changing the Nether dimension ID
  81. # to the End ID. The main downside to this is that the sky will resemble that of
  82. # the end sky in the nether, but ultimately it's the only way for this feature to work.
  83. above-bedrock-nether-building: false

  84. # bStats is a stat tracker that is entirely anonymous and tracks only basic information
  85. # about Geyser, such as how many people are online, how many servers are using Geyser,
  86. # what OS is being used, etc. You can learn more about bStats here: https://bstats.org/.
  87. # https://bstats.org/plugin/server-implementation/GeyserMC
  88. metrics:
  89.   # If metrics should be enabled
  90.   enabled: true
  91.   # UUID of server, don't change!
  92.   uuid: generateduuid

  93. # DO NOT TOUCH!
  94. 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即可
重启服务器,你就会发现基岩版玩家名字里的空格
被自动替换成下划线 _ 了!


图片展示
以下都是我服实拍