Zh:Snoop

From wiki.vg
Jump to navigation Jump to search

本文可能已经过时了——当前版本为2

每15分钟,minecraft发送一个提供统计信息的HTTP POST请求。这可以在server.properties中禁用。

字段 客户端 服务端 示例 注释
applet 是 否 true
avg_rec_packet_count 否 是 0
avg_rec_packet_size 否 是 0
avg_sent_packet_count 否 是 6
avg_sent_packet_size 否 是 44
avg_tick_ms 否 是 3
client_brand 是 否 vanilla 通过ClientBrandRetriever.getClientModName()
cpu_cores 是 是 2 通过Runtime.getRuntime().availableProcessors()
dedicated 否 是 true
display_frequency 是 否 60 通过org.lwjgl.opengl.Display.getDisplayMode().getFrequency()
display_type 是 否 windowed windowed或fullscreen
fps 是 否 60
gl_caps[key] 是 否 varies by key 通过org.lwjgl.opengl.GLContext.getCapabilities().GL_ARB_key
gl_max_texture_size 是 否 8192
gui_state 否 是 disabled enabled或disabled
gui_supported 否 是 headless 通过java.awt.GraphicsEnvironment.isHeadless()(headless或supported)
java_version 是 是 1.6.0_24 通过System.getProperty("java.version")
jvm_arg[n] 是 是 -Xms2800M 通过java.lang.management.ManagementFactory.getRuntimeMXBean().getInputArguments()(仅-X参数)
jvm_args 是 是 2 见上
memory_free 是 是 2429082024 通过Runtime.getRuntime().freeMemory()
memory_max 是 是 2813722624 通过Runtime.getRuntime().maxMemory()
memory_total 是 是 2813722624 通过Runtime.getRuntime().totalMemory()
opengl_vendor 是 否 NVIDIA Corporation 通过GL11.glGetString(GL_VENDOR)
opengl_version 是 否 3.3.0 NVIDIA 302.17 通过GL11.glGetString(GL_VERSION)
os_architecture 是 是 amd64 通过System.getProperty("os.arch")
os_name 是 是 Linux 通过System.getProperty("os.name")
os_version 是 是 3.2.0-3-amd64 通过System.getProperty("os.version")
players_current 否 是 0
players_max 否 是 20
players_seen 否 是 4 计算世界/玩家中的文件
server_brand 否 是 vanilla 通过getServerModName()(硬编码为“vanilla”,被bukkit等覆盖)
singleplayer 否 是 false 服务器是否正在运行以支持单人游戏会话
snooper_count 是 是 0 目前为止snooper报告的次数
snooper_token 是 是 dfe921ac-0293-4e42-8d99-1316cdd626d8 通过java.util.UUID.randomUUID().toString()(每次程序启动时唯一)
texpack_name 是 否 Default
texpack_resolution 是 否 16
uses_auth 否 是 true 对应server.properties中的online-mode
version 是 是 1.4.2
vsync_enabled 是 否 true
whitelist_count 否 是 0
whitelist_enabled 否 是 false
world[n][chunks_loaded] 否 是 978
world[n][difficulty] 否 是 1
world[n][dimension] 否 是 0
world[n][generator_name] 否 是 default
world[n][generator_version] 否 是 1
world[n][hardcore] 否 是 false
world[n][height] 否 是 256
world[n][mode] 否 是 SURVIVAL
worlds 否 是 3