Experimental version, there may be undiscovered bugs
Major changes in internal structure & major changes in configuration
Support 1.14 / 1.15 / 1.16 / 1.17, and packaged with java8
"language:" is no longer available in the configuration file, Instead, the language corresponding to the player's region will be displayed automatically (Now only "en" / "zh_tw" / "zh_cn", You can also manually add to the "lang/" directory in plugin jar)
All processing now uses bytes instead of quantities
Adaptive player's internet speed
New configuration:
Code (YAML):
# 視野距離模式 # 越大的視野距離需要更多的計算 # 可用選項: # "X31" = 最大視野距離 31 # "X127" = 最大視野距離 127 # View distance mode # The larger the field of view distance requires more calculations # Options: # "X31" = max view distance 31 # "X127" = max view distance 127 view-distance-mode: "X127"
# 伺服器本身的視野距離 # 只是為了防止錯誤 (某些最佳化核心) # 設置為 -1 則使用伺服器本身 view-distance 的數值 # The field of view of the server itself # Just to prevent errors (some optimization cores) # Set to -1 uses the value of view-distance of the server itself server-view-distance: -1
# 自動適應玩家網路速度 # 採用特殊的方式計算玩家網路速度 # 盡可能不發送高於玩家網速的區塊 # Automatically adapt to the player's internet speed # Use a special method to calculate the player network speed # Try not to send chunk higher than the player network speed auto-adapt-player-network-speed: true
# 異步執行緒數量 # 建議值 1~10 (也可以更高) # Number of asynchronous threads # Recommended value 1~10 (can also be higher) async-thread-amount: 2
# 伺服器每秒能傳輸多少數據 (單位 bytes) # 預設值 20971520 bytes = 20 MB # How much data can the server transmit per second (Unit bytes) # Default value 20971520 bytes = 20 MB server-send-second-max-bytes: 20971520
# 伺服器每個遊戲刻度能生成多少個區塊 # 產生地形時, CPU負擔會很大 # 設置為 0 不生成 # How many chunk can the server generate per game tick # When generating terrain, the CPU workload is greater # Set to 0 Does not generate server-tick-max-generate-amount: 4
# 獨立的世界配置 # Independent world configuration worlds: # 全部世界的預設值 # default value for all worlds default: # 是否啟用擴展視野距離 # Whether to enable extended field of view distance enable: true
# 最大視野距離 # 客戶端有效視野距離不會超過此值 # 客戶端 < 擴展極限 = 客戶端 # 客戶端 > 擴展極限 = 擴展極限 # 客戶端 < 伺服器 = 伺服器 # Max view distance # The effective view distance of the client will not exceed this value # Client < Extend = Client # Client > Extend = Extend # Client < Server = Server max-view-distance: 127
# 世界每個遊戲刻度能生成多少個區塊 # 產生地形時, CPU負擔會很大 # 設置為 0 不生成 # How many chunk can the world generate per game tick # When generating terrain, the CPU workload is greater # Set to 0 Does not generate world-tick-max-generate-amount: 4
# 發送的區塊是否包含磚瓦實體資料 # 若不發送則玩家依然看的到那些方塊, 除非使用 `prevent-xray` # 例如 箱子 / 告示牌 / 床 # Whether the sent chunk contains tile entity data # If you don’t send it, the player will still see those blocks, unless you use `prevent-xray` # E.g. chest / sign / bed send-title-data: true
# 世界每秒能傳輸多少數據 (單位 bytes) # 預設值 10485760 bytes = 10 MB # How much data can the world transmit per second (Unit bytes) # Default value 10485760 bytes = 10 MB world-send-second-max-bytes: 10485760
# 玩家每秒能傳輸多少數據 (單位 bytes) # 預設值 2097152 bytes = 2 MB # How much data can the world transmit per second (Unit bytes) # Default value 2097152 bytes = 2 MB player-send-second-max-bytes: 2097152
# 發送前的延遲 # 每次切換世界 / 長距離傳送 / 死亡重生, 都要等待多少毫秒才傳輸區塊 # 建議數值 2000 ~ 20000 (2 ~ 20秒) # Delay before send # Every time you switch the world / long distance transmission / death rebirth, how many milliseconds do you have to wait before sending the chunk # Recommended value 2000~20000 (2~20 seconds) delay-before-send: 5000
# 預防方塊透視外掛 # 暴力替換, 不使用任何計算 # 此配置轉換的方塊僅此插件發送的區塊! 非此插件發送與伺服器本身發送的互不干涉! # 如果伺服器需要一樣的功能, 使用 paper 核心並啟用 'paper.yml'->'anti-xray' # Prevent chunk perspective plugin # Brute force replacement without any calculation # The block converted by this configuration is only the chunk sent by this plugin! plugin send and server send itself does not interfere with each other! # Server needs the same function, use the paper core and enable 'paper.yml'->'anti-xray' # # * https://paper.readthedocs.io/en/latest/server/configuration.html#anti-xray prevent-xray: # 是否啟用預防方塊透視外掛 # Whether to enable the prevent xray enable: true
# 是否要計算權限 # 尋找玩家是否有 max_view_distance.<最大視野距離> 權限 # Want to calculate permissions # Find out if the player has max_view_distance.<Maximum view distance> permission player-independent-permissions: true
# 超速則不提供擴展視野距離 # 水平方向的移動速度高於此值則暫時停止提供擴展視野距離 # 內部計算公式為 `sqrt(square(lastX - moveX) + square(lastZ - moveZ)) > speeding-not-send` # 設置為 -1 則忽略 # Speeding does not provide extend view distance # If the moving speed in the horizontal direction is higher than this value, it will temporarily stop provide extend view distance # The internal calculation formula is `sqrt(square(lastX - moveX) + square(lastZ - moveZ)) > speeding-not-send` # Set to -1 to ignore speeding-not-send: 1.2
# 地獄由於遊戲機制無法看太遠 # Hell cannot be seen too far due to game mechanics world_nether: # 是否啟用擴展視野距離 # Whether to enable extended field of view distance enable: false