该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Server Status For Minecraft PC & PE (MCServerStatus)

描述

Server Status For Minecraft PC & PE is a WordPress Widget, show Minecraft Java and Bedrock editions server data.

GitHub: https://github.com/MCNewsTools/MCServerStatus-WordPressWidget

You can display / hide these information:

  • Server name (MOTD)
  • Status (online/offline)
  • IP address / hostname
  • Port
  • Server platform
  • Server software
  • Game version
  • Website
  • DynMap
  • Plugins count
  • Plugins list
  • Player count (current / maximum)
  • Player list
  • Player skin avatar

and more features are planned.

Other functions:

  • Display web site link
  • DynMap
  • Set player avatar size
  • Auto update status (Beta)

Precautions:

  • This method use GameSpy4 protocol, and requires enabling query listener in your server.properties like this: enable-query=true and query.port=25565.
  • Enabled query listener, can’t get server data, it may be that your website hosting provider doesn’t allow requests, you can try setting query port to 25565 (query.port=25565) in server.properties file and then testing it.
  • If you still can’t, please contact your website hosting provider.

If query listener cannot be used, it automatically switches to ping.

屏幕截图

  • Runtime Photos
  • Setting Options 1
  • Setting Options 2

安装

  1. Upload all files to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Enabling query listener in your Minecraft server server.properties file, add enable-query=true and query.port=25565

常见问题

Installation Instructions
  1. Upload all files to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Enabling query listener in your Minecraft server server.properties file, add enable-query=true and query.port=25565
Why can’t get server data?

This method use GameSpy4 protocol, and requires enabling query listener in your server.properties like this:

enable-query=true
query.port=25565

I have enabled query listener, can’t get server data.

It may be that your website hosting provider doesn’t allow requests, you can try setting query port to 25565 (query.port=25565) in server.properties file and then testing it.

If you still can’t, please contact your website hosting provider.

Fatal error: Cannot redeclare class xxxxx in xxxxxx on line xx

Please close plugins with the same function, this plugin use xPaw/PHP-Minecraft-Query.

评价

2021 年 11 月 9 日 1 回复
Gives the message beloves and inactivates itself when trying to use. Fatal error: Declaration of MCServerStatus_Widget::widget(array $args, array $instance) must be compatible with WP_Widget::widget($args, $instance) in C:\******\******\wp-content\plugins\server-status-for-minecraft-pc-pe\widget.php on line 60
2021 年 1 月 13 日
Do what it should. Works with Wordpress 5.6. Thanks to the developer.
2018 年 2 月 20 日
Very easy to setup and DOES work. Make sure you follow instructions to set server.properties: enable-query=true query.port=25565 In my case, this port is the same as the server port. Not sure if it must be or not, but you probably need to forward the ports.
2017 年 3 月 29 日
I have query and everything set correcntly, the plugin says server offline when its not.
2016 年 12 月 11 日
Fatal error: Cannot redeclare class MinecraftQueryException in /var/www/test/data/www/test.com/wp-content/plugins/server-status-for-minecraft-pc-pe/libs/MinecraftQuery.php on line 5 Understood. Widgets prevented another widget. Everything works fine.
阅读所有6条评价

贡献者及开发者

“Server Status For Minecraft PC & PE (MCServerStatus)” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Server Status For Minecraft PC & PE (MCServerStatus)」插件已被翻译至 4 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Server Status For Minecraft PC & PE (MCServerStatus)”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.3.3

  • Fix fatal error when displaying 2 widgets, By daniel-widrick.

1.3.2

  • Update Text Domain.
  • Not updated from version 1.3.0, need to reset Widget.

1.3.1

  • Update load_plugin_textdomain.
  • Not updated from version 1.3.0, need to reset Widget.

1.3.0

  • Solve some problems and add Ping query server.
  • Need to reset Widget after updating!

1.2.0

  • Update part of the code.

1.1.2

  • Add German translation, By koyuawsmbrtn.

1.1.1

  • Add Russian Translation, Thanks vvzar.

1.1.0

  • Some fine-tuning

1.0.0

  • First release