Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在 Bukkit 重载配置后丢失修改的值 #482

Closed
4 of 5 tasks
RushCN opened this issue Feb 7, 2024 · 2 comments
Closed
4 of 5 tasks

在 Bukkit 重载配置后丢失修改的值 #482

RushCN opened this issue Feb 7, 2024 · 2 comments
Labels
漏洞 有些东西爆炸了

Comments

@RushCN
Copy link

RushCN commented Feb 7, 2024

问题描述

enable-http-api更改为true,但重载后立刻变回false
配置文件只更改了enable-http-api

复现方法

  1. 打开服务器
  2. 更改config.yml
  3. 使用/mirai reload指令

服务端类型

Bukkit

服务端版本

Leaves-"fd1b3f7" (MC: 1.20.4)

MiraiMC 插件版本

1.8.2

服务端日志

[14:44:16] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
[14:44:21] [ServerMain/INFO]: Loaded 1174 recipes
[14:44:21] [ServerMain/INFO]: Loaded 1271 advancements
[14:44:22] [Server thread/INFO]: Starting minecraft server version 1.20.4
[14:44:22] [Server thread/WARN]: ****************************
[14:44:22] [Server thread/WARN]: YOU ARE RUNNING THIS SERVER AS AN ADMINISTRATIVE OR ROOT USER. THIS IS NOT ADVISED.
[14:44:22] [Server thread/WARN]: YOU ARE OPENING YOURSELF UP TO POTENTIAL RISKS WHEN DOING THIS.
[14:44:22] [Server thread/WARN]: FOR MORE INFORMATION, SEE https://madelinemiller.dev/blog/root-minecraft-server/
[14:44:22] [Server thread/WARN]: ****************************
[14:44:22] [Server thread/INFO]: Loading properties
[14:44:22] [Server thread/INFO]: This server is running Leaves version git-Leaves-"fd1b3f7" (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: fd1b3f7)
[14:44:23] [Server thread/INFO]: Server Ping Player Sample Count: 12
[14:44:23] [Server thread/INFO]: Using 4 threads for Netty based IO
[14:44:23] [Server thread/INFO]: [ChunkTaskScheduler] Chunk system is using 1 I/O threads, 1 worker threads, and gen parallelism of 1 threads
[14:44:24] [Server thread/WARN]: [Leaves] not support, reset to [player-name]
[14:44:24] [Server thread/WARN]: [Leaves] not support, reset to [14:00, 2:00]
[14:44:24] [Server thread/WARN]: [Leaves] not support, reset to [https://url.with.authlib-injector-yggdrasil]
[14:44:24] [Server thread/INFO]: Default game type: SURVIVAL
[14:44:24] [Server thread/INFO]: Generating keypair
[14:44:24] [Server thread/INFO]: Starting Minecraft server on *:25565
[14:44:25] [Server thread/INFO]: Using epoll channel type
[14:44:25] [Server thread/INFO]: Paper: Using libdeflate (Linux x86_64) compression from Velocity.
[14:44:25] [Server thread/INFO]: Paper: Using OpenSSL 3.0.x (Linux x86_64) cipher from Velocity.
[14:44:25] [Server thread/INFO]: [MiraiMC] Preparing MiraiMC start-up.
[14:44:25] [Server thread/INFO]: [MiraiMC] Start-up tasks finished.
[14:44:25] [Server thread/INFO]: [Vault] Loading server plugin Vault v1.7.3-b131
[14:44:25] [Server thread/INFO]: [ViaVersion] Loading server plugin ViaVersion v4.9.3-SNAPSHOT
[14:44:25] [Server thread/INFO]: [ViaVersion] ViaVersion 4.9.3-SNAPSHOT is now loaded. Registering protocol transformers and injecting...
[14:44:26] [Via-Mappingloader-0/INFO]: [ViaVersion] Loading block connection mappings ...
[14:44:27] [Via-Mappingloader-0/INFO]: [ViaVersion] Using FastUtil Long2ObjectOpenHashMap for block connections
[14:44:27] [Server thread/INFO]: [ChestSort] Loading server plugin ChestSort v14.0.0
[14:44:27] [Server thread/INFO]: [WorldEdit] Loading server plugin WorldEdit v7.2.18+6616-abda4e0
[14:44:29] [Server thread/INFO]: Got request to register class com.sk89q.worldedit.bukkit.BukkitServerInterface with WorldEdit [com.sk89q.worldedit.extension.platform.PlatformManager@18a60a04]
[14:44:29] [Server thread/INFO]: [Vivecraft] Loading server plugin Vivecraft-Spigot-Extensions v1.20.4-2
[14:44:29] [Server thread/INFO]: [SkinsRestorer] Loading server plugin SkinsRestorer v15.0.6
[14:44:29] [Server thread/INFO]: [BlockLocker] Loading server plugin BlockLocker v1.12.1
[14:44:29] [Server thread/INFO]: [MiraiMC] Loading server plugin MiraiMC v1.8.2
[14:44:29] [Server thread/INFO]: [MiraiMC] Preparing MiraiMC pre-load.
[14:44:29] [Server thread/INFO]: [MiraiMC] Loading config.
[14:44:29] [Server thread/INFO]: [MiraiMC] Mirai working dir: default
[14:44:29] [Server thread/INFO]: [MiraiMC] Selected mirai core version: stable
[14:44:30] [Server thread/INFO]: [MiraiMC] Verifying mirai-core-all-2.15.0.jar
[14:44:30] [Server thread/INFO]: [MiraiMC] Loading library plugins/MiraiMC/MiraiBot/libs/mirai-core-all-2.15.0.jar
[14:44:30] [Server thread/INFO]: [MiraiMC] Pre-load tasks finished.
[14:44:30] [Server thread/INFO]: [EntityClearer] Loading server plugin EntityClearer v2.0.0
[14:44:30] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[14:44:30] [Server thread/INFO]: [Vault] Enabling Vault v1.7.3-b131
[14:44:31] [Server thread/INFO]: [Vault] [Permission] SuperPermissions loaded as backup permission system.
[14:44:31] [Server thread/INFO]: [Vault] Enabled Version 1.7.3-b131
[14:44:31] [Server thread/INFO]: [WorldEdit] Enabling WorldEdit v7.2.18+6616-abda4e0
[14:44:31] [Server thread/INFO]: Registering commands with com.sk89q.worldedit.bukkit.BukkitServerInterface
[14:44:31] [Server thread/INFO]: WEPIF: Vault detected! Using Vault for permissions
[14:44:31] [Server thread/INFO]: Using com.sk89q.worldedit.bukkit.adapter.impl.v1_20_R3.PaperweightAdapter as the Bukkit adapter
[14:44:34] [Server thread/INFO]: [SkinsRestorer] Enabling SkinsRestorer v15.0.6
[14:44:35] [Server thread/INFO]: [SkinsRestorer] Running on Minecraft 1.20.4.
[14:44:35] [Server thread/INFO]: [SkinsRestorer] Using paper join listener!
[14:44:35] [Server thread/INFO]: [BlockLocker] Enabling BlockLocker v1.12.1
[14:44:35] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
[14:44:35] [Server thread/WARN]: The server will make no attempt to authenticate usernames. Beware.
[14:44:35] [Server thread/WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
[14:44:35] [Server thread/WARN]: To change this, set "online-mode" to "true" in the server.properties file.
[14:44:35] [Server thread/INFO]: Preparing level "RushCN's world"
[14:44:35] [Folia Async Scheduler Thread #1/INFO]: [SkinsRestorer] ----------------------------------------------
[14:44:35] [Folia Async Scheduler Thread #1/INFO]: [SkinsRestorer]     +==================+
[14:44:35] [Folia Async Scheduler Thread #1/INFO]: [SkinsRestorer]     |   SkinsRestorer  |
[14:44:35] [Folia Async Scheduler Thread #1/INFO]: [SkinsRestorer]     |------------------|
[14:44:35] [Folia Async Scheduler Thread #1/INFO]: [SkinsRestorer]     |  Standalone Mode |
[14:44:35] [Folia Async Scheduler Thread #1/INFO]: [SkinsRestorer]     +==================+
[14:44:35] [Folia Async Scheduler Thread #1/INFO]: [SkinsRestorer] ----------------------------------------------
[14:44:35] [Folia Async Scheduler Thread #1/INFO]: [SkinsRestorer]     Version: 15.0.6
[14:44:35] [Folia Async Scheduler Thread #1/INFO]: [SkinsRestorer]     Commit: 3b21903
[14:44:35] [Folia Async Scheduler Thread #1/INFO]: [SkinsRestorer]     This is the latest version!
[14:44:35] [Folia Async Scheduler Thread #1/INFO]: [SkinsRestorer] ----------------------------------------------
[14:44:37] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[14:44:38] [Server thread/INFO]: Time elapsed: 475 ms
[14:44:38] [Server thread/INFO]: Preparing start region for dimension minecraft:the_nether
[14:44:38] [Server thread/INFO]: Time elapsed: 256 ms
[14:44:38] [Server thread/INFO]: Preparing start region for dimension minecraft:the_end
[14:44:40] [Server thread/INFO]: Time elapsed: 2094 ms
[14:44:40] [Server thread/INFO]: [ViaVersion] Enabling ViaVersion v4.9.3-SNAPSHOT
[14:44:40] [Server thread/INFO]: [ViaVersion] ViaVersion detected server version: 1.20.3/1.20.4 (765)
[14:44:40] [Server thread/WARN]: [ViaVersion] ViaVersion does not have any compatible versions for this server version!
[14:44:40] [Server thread/WARN]: [ViaVersion] Please remember that ViaVersion only adds support for versions newer than the server version.
[14:44:40] [Server thread/WARN]: [ViaVersion] If you need support for older versions you may need to use one or more ViaVersion addons too.
[14:44:40] [Server thread/WARN]: [ViaVersion] In that case please read the ViaVersion resource page carefully or use https://viaversion.com/setup
[14:44:40] [Server thread/WARN]: [ViaVersion] and if you're still unsure, feel free to join our Discord-Server for further assistance.
[14:44:40] [Server thread/INFO]: [ChestSort] Enabling ChestSort v14.0.0
[14:44:40] [Server thread/INFO]: [ChestSort] Use permissions: true
[14:44:40] [Server thread/INFO]: [ChestSort] Current sorting method: {category},{itemsFirst},{name},{color},{customName}
[14:44:40] [Server thread/INFO]: [ChestSort] Allow automatic chest sorting:true
[14:44:40] [Server thread/INFO]: [ChestSort]   |- Chest sorting enabled by default: false
[14:44:40] [Server thread/INFO]: [ChestSort]   |- Sort time: close
[14:44:40] [Server thread/INFO]: [ChestSort] Allow automatic inventory sorting:true
[14:44:40] [Server thread/INFO]: [ChestSort]   |- Inventory sorting enabled by default: false
[14:44:40] [Server thread/INFO]: [ChestSort] Auto generate category files: true
[14:44:40] [Server thread/INFO]: [ChestSort] Allow hotkeys: true
[14:44:40] [Server thread/INFO]: [ChestSort] Hotkeys enabled by default:
[14:44:40] [Server thread/INFO]: [ChestSort]   |- Middle-Click: true
[14:44:40] [Server thread/INFO]: [ChestSort]   |- Shift-Click: true
[14:44:40] [Server thread/INFO]: [ChestSort]   |- Double-Click: true
[14:44:40] [Server thread/INFO]: [ChestSort]   |- Shift-Right-Click: true
[14:44:40] [Server thread/INFO]: [ChestSort] Allow additional hotkeys: true
[14:44:40] [Server thread/INFO]: [ChestSort] Additional hotkeys enabled by default:
[14:44:40] [Server thread/INFO]: [ChestSort]   |- Left-Click: false
[14:44:40] [Server thread/INFO]: [ChestSort]   |- Right-Click: false
[14:44:40] [Server thread/INFO]: [ChestSort] Check for updates: true
[14:44:40] [Server thread/INFO]: [ChestSort] Check interval: 4 hours (4.0 seconds)
[14:44:40] [Server thread/INFO]: [ChestSort] Categories: 900-weapons (6), 905-common-tools (4), 907-other-tools (6), 909-food (33), 910-valuables (47), 920-armor-and-arrows (9), 930-brewing (18), 950-redstone (23), 960-wood (60), 970-stone (38), 980-plants (50), 981-corals (1)
[14:44:40] [Server thread/INFO]: [Vivecraft] Enabling Vivecraft-Spigot-Extensions v1.20.4-2
[14:44:41] [Server thread/INFO]: [MiraiMC] Enabling MiraiMC v1.8.2
[14:44:41] [Server thread/INFO]: [MiraiMC] Preparing MiraiMC post-load.
[14:44:41] [Server thread/INFO]: [MiraiMC] Initializing SQLite database.
[14:44:41] [Server thread/INFO]: [me.dreamvoid.miraimc.libraries.com.zaxxer.hikari.HikariDataSource] MiraiMC-SQLite - Starting...
[14:44:41] [Server thread/INFO]: [me.dreamvoid.miraimc.libraries.com.zaxxer.hikari.HikariDataSource] MiraiMC-SQLite - Start completed.
[14:44:41] [Server thread/INFO]: [MiraiMC] Starting Mirai-Event listener.
[14:44:41] [Server thread/INFO]: [MiraiMC] Starting Auto-Login bot.
[14:44:41] [Server thread/WARN]: [MiraiMC] 确保您正在使用开源的 MiraiMC 插件,未知来源的插件可能会盗取您的账号!
[14:44:41] [Server thread/WARN]: [MiraiMC] 请始终从 GitHub 或作者指定的其他途径下载插件: https://github.com/DreamVoid/MiraiMC
[14:44:41] [Server thread/INFO]: [MiraiMC] Some initialization tasks will continue to run afterwards.
[14:44:41] [Folia Async Scheduler Thread #3/INFO]: [MiraiMC-AutoLogin] Starting auto login task.
[14:44:41] [Server thread/INFO]: [MiraiMC] Post-load tasks finished. Welcome to use MiraiMC!
[14:44:41] [Server thread/INFO]: [MiraiMC] Registering events.
[14:44:41] [Folia Async Scheduler Thread #2/INFO]: [MiraiMC] 正在检查更新...
[14:44:41] [Folia Async Scheduler Thread #2/INFO]: [MiraiMC] 你使用的是最新版本的 MiraiMC!
[14:44:41] [Server thread/INFO]: [MiraiMC] Initializing bStats metrics.
[14:44:41] [Server thread/INFO]: [MiraiMC] Registering commands for paper.
[14:44:42] [Server thread/INFO]: [EntityClearer] Enabling EntityClearer v2.0.0
[14:44:42] [Server thread/INFO]: [EntityClearer] TPS monitoring activated.
[14:44:43] [Server thread/INFO]: Running delayed init tasks
[14:44:43] [Server thread/INFO]: Done (21.124s)! For help, type "help"
[14:44:43] [Craft Scheduler Thread - 2 - ViaVersion/INFO]: [ViaVersion] Finished mapping loading, shutting down loader executor!
[14:44:43] [Craft Scheduler Thread - 0 - Vault/INFO]: [Vault] Checking for Updates ... 
[14:44:43] [Craft Scheduler Thread - 1 - Vivecraft-Spigot-Extensions/INFO]: [Vivecraft] Version: 1.20.4-2
[14:44:43] [Craft Scheduler Thread - 1 - Vivecraft-Spigot-Extensions/INFO]: [Vivecraft] Checking for update...
[14:44:43] [Folia Async Scheduler Thread Timer/INFO]: [MiraiMC] ========== [ MiraiMC 公告版 ] ==========
[14:44:43] [Folia Async Scheduler Thread Timer/INFO]: [MiraiMC] 1.8.2 正式版已发布,祝各位春节愉快
[14:44:43] [Folia Async Scheduler Thread Timer/INFO]: [MiraiMC] 可前往 Modrinth 页面获取更新:
[14:44:43] [Folia Async Scheduler Thread Timer/INFO]: [MiraiMC] https://modrinth.com/plugin/miraimc
[14:44:43] [Folia Async Scheduler Thread Timer/INFO]: [MiraiMC] =======================================
[14:44:44] [Server thread/WARN]: [ViaVersion] You are running a development version of the plugin, please report any bugs to GitHub.
[14:44:45] [Craft Scheduler Thread - 0 - Vault/INFO]: [Vault] No new version available
[14:44:46] [Craft Scheduler Thread - 1 - Vivecraft-Spigot-Extensions/INFO]: [Vivecraft] VSE is up to date.
[14:45:12] [ForkJoinPool.commonPool-worker-1/INFO]: 配置文件已经重新加载,部分配置可能需要重新启动服务器才能生效!
[14:55:55] [Folia Async Scheduler Thread #2/INFO]: 此服务器没有启用HTTP-API模式,请检查配置文件!
[14:56:09] [Server thread/INFO]: Stopping the server
[14:56:09] [Server thread/INFO]: Stopping server
[14:56:09] [Server thread/INFO]: [EntityClearer] Disabling EntityClearer v2.0.0
[14:56:09] [Server thread/INFO]: [MiraiMC] Disabling MiraiMC v1.8.2
[14:56:09] [Server thread/INFO]: [MiraiMC] Preparing MiraiMC unload.
[14:56:09] [Server thread/INFO]: [MiraiMC] Closing all bots
[14:56:09] [Server thread/INFO]: [MiraiMC] Stopping bot event listener.
[14:56:09] [Server thread/INFO]: [MiraiMC] Closing database.
[14:56:09] [Server thread/INFO]: [me.dreamvoid.miraimc.libraries.com.zaxxer.hikari.HikariDataSource] MiraiMC-SQLite - Shutdown initiated...
[14:56:09] [Server thread/INFO]: [me.dreamvoid.miraimc.libraries.com.zaxxer.hikari.HikariDataSource] MiraiMC-SQLite - Shutdown completed.
[14:56:09] [Server thread/INFO]: [MiraiMC] Unload tasks finished. Thanks for use MiraiMC!
[14:56:09] [Server thread/INFO]: [BlockLocker] Disabling BlockLocker v1.12.1
[14:56:09] [Server thread/INFO]: [SkinsRestorer] Disabling SkinsRestorer v15.0.6
[14:56:09] [Server thread/INFO]: [Vivecraft] Disabling Vivecraft-Spigot-Extensions v1.20.4-2
[14:56:09] [Server thread/INFO]: [WorldEdit] Disabling WorldEdit v7.2.18+6616-abda4e0
[14:56:09] [Server thread/INFO]: Unregistering com.sk89q.worldedit.bukkit.BukkitServerInterface from WorldEdit
[14:56:09] [Server thread/INFO]: [ChestSort] Disabling ChestSort v14.0.0
[14:56:09] [Server thread/INFO]: [ViaVersion] Disabling ViaVersion v4.9.3-SNAPSHOT
[14:56:09] [Server thread/INFO]: [ViaVersion] ViaVersion is disabling, if this is a reload and you experience issues consider rebooting.
[14:56:09] [Server thread/INFO]: [Vault] Disabling Vault v1.7.3-b131
[14:56:09] [Server thread/INFO]: Saving players
[14:56:09] [Server thread/INFO]: Saving worlds
[14:56:09] [Server thread/INFO]: Saving chunks for level 'ServerLevel[RushCN's world]'/minecraft:overworld
[14:56:09] [Server thread/INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'RushCN's world'
[14:56:09] [Server thread/INFO]: [ChunkHolderManager] Halted chunk system for world 'RushCN's world'
[14:56:09] [Server thread/INFO]: [ChunkHolderManager] Saving all chunkholders for world 'RushCN's world'
[14:56:09] [Server thread/INFO]: [ChunkHolderManager] Saved 5 block chunks, 153 entity chunks, 0 poi chunks in world 'RushCN's world' in 0.05s
[14:56:09] [Server thread/INFO]: ThreadedAnvilChunkStorage (RushCN's world): All chunks are saved
[14:56:09] [Server thread/INFO]: Saving chunks for level 'ServerLevel[RushCN's world_nether]'/minecraft:the_nether
[14:56:09] [Server thread/INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'RushCN's world_nether'
[14:56:09] [Server thread/INFO]: [ChunkHolderManager] Halted chunk system for world 'RushCN's world_nether'
[14:56:09] [Server thread/INFO]: [ChunkHolderManager] Saving all chunkholders for world 'RushCN's world_nether'
[14:56:09] [Server thread/INFO]: [ChunkHolderManager] Saved 2 block chunks, 38 entity chunks, 0 poi chunks in world 'RushCN's world_nether' in 0.02s
[14:56:09] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[14:56:09] [Server thread/INFO]: Saving chunks for level 'ServerLevel[RushCN's world_the_end]'/minecraft:the_end
[14:56:09] [Server thread/INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'RushCN's world_the_end'
[14:56:09] [Server thread/INFO]: [ChunkHolderManager] Halted chunk system for world 'RushCN's world_the_end'
[14:56:09] [Server thread/INFO]: [ChunkHolderManager] Saving all chunkholders for world 'RushCN's world_the_end'
[14:56:09] [Server thread/INFO]: [ChunkHolderManager] Saved 0 block chunks, 10 entity chunks, 0 poi chunks in world 'RushCN's world_the_end' in 0.00s
[14:56:09] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[14:56:09] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved
[14:56:09] [Server thread/INFO]: Flushing Chunk IO
[14:56:09] [Server thread/INFO]: Closing Thread Pool
[14:56:09] [Server thread/INFO]: Closing Server

额外说明

freecompress-20240207-0643-45.2216402.mp4

对这一事件的录屏

协议

  • 我已查阅常见问题疑难解答issue 列表,并确认我的问题不在其中。
  • 我确认我已认真阅读所有注意事项并认真填写表单。
  • 我确认我没有看这些选择框就随便勾选了。
  • 我明白,如果没有正确填写 issue 模板的内容,本 issue 将会直接被关闭并被锁定。
  • 我明白,如果滥用 issue 功能,我将会被列入黑名单。
@RushCN RushCN added the 漏洞 有些东西爆炸了 label Feb 7, 2024
@DreamVoid
Copy link
Owner

image

@RushCN
Copy link
Author

RushCN commented Feb 7, 2024

image

看错了,以为是“没有认真看”,抱歉

@DreamVoid DreamVoid changed the title enable-http-api无法更改为true 在 Bukkit 重载配置后丢失修改的值 Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
漏洞 有些东西爆炸了
Projects
None yet
Development

No branches or pull requests

2 participants