• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

Statistics

来自Minecraft插件百科
Mcdarc留言 | 贡献2015年7月26日 (日) 16:30的版本
跳转到导航 跳转到搜索
本页面已存在其他语言的内容,请协助翻译为本地化的中文。
  • 点击此处开始翻译。
  • 如本模板出现在原文存档页面,请注意更新主页面后,仍需要去除此处该模板。
  • 如当前页面已经没有需要翻译的内容,请删去待翻译模板。
  • 有标题的大篇幅文章,如果短时间内无法全部翻译,请先把所有的标题翻译出来,以便之后的贡献者选择与翻译章节内容。
已检索到其他语言的内容,请协助搬运外文内容至本页面,并翻译为本地化的中文。

点击此处开始搬运。(搬运完毕后请移除本模板并添加“待翻译”模板)

1 2

Statistics
外文名Statistics
插件类型Spigot / CraftBukkit
最新版本v.1.2.4
兼容服务端CraftBukkit 1.7.2-R0.3<->1.8.1
前置插件
源地址http://dev.bukkit.org/bukkit-plugins/Statistics

概览

你是否在寻找一款高端的插件去探寻你的玩家数据? 看看这个插件吧! 在其他地方也有一些类似的插件, 他们追踪正面的数据, 当然, Statistics 会一步一步深入、完整地历遍来追踪式统计, 可以收集到数量惊人的玩家数据. 命名一个数据点,我们不出意外也可以追踪到其. 这个插件可以被高度地自定义; 你告诉其它应做什么,其便会作甚.

功能

服务器统计:

  • Startup and shutdown times
  • Current server status
  • Uptime statistics
  • Total gameplay
  • Online players
  • .... and more!

World Statistics:

  • Distance Travelled
  • PVP, PVE, natural deaths
  • Blocks played and broken
  • Items picked up, dropped, used, eaten, etc.
  • .... and more!

Player Statistics:

  • Player inventory
  • Health, hunger, experience
  • Armour rating
  • Game mode
  • Words said, command sent
  • Login and logout times
  • Time spent on the server
  • Distance travelled
  • Detailed kills and deaths
  • ... and more!

Plugin Statistics:

  • Vault (Money, Groups)
  • ... more coming soon!

其它

  • All Statistics are displayed on an homepage
  • Statistics can be displayed ingame on an scoreboard
  • Statistics can be displayed ingame in an Book

需求

  • PHP 5.3.2 or greater
    • GD2 library
    • cURL library
    • fsockopen
  • MySQL 5.5 or greater
    • InnoDB support
    • remote connections allowed

安装

Before you begin the installation process, you need to have full access to a MySQL database. It can be an existing database, or you can create a new one; the later is preferable, but not required. Additionally, you have to have a web server to host the YASP portal.

  1. Copy the Statistics.jar to the /plugins/ directory of your Minecraft server. Restart the server. The plugin will complain about the lack of connection to the database - this is normal and expected.
  2. Open /plugins/Statistics/config.yml and fill in the necessary MySQL database details. Restart or reload the server again.
  3. The plugin will complete the initial set up of the database tables. You will see the patch notification - please, be patient and wait until the plugin says that the database is up to date.
  4. The plugin installation is complete.
  5. Copy the contents of the web archive to the desired directory on your web server. For example, /home/public_html/stats.
  6. Make the cache and include/config dirs writable. (chmod 777)
  7. Proceed to the URL associated with that directory and follow the instructions on screen.
  8. Portal installation is complete.

FAQ

Q: The plugin cannot connect to the database, even though I have filled out all the appropriate details! A: Make sure that the database is capable of accepting incoming (remote) connections, and the user has all the appropriate permissions. Additionally, ensure that the configuration syntax is correct.

Q: The portal takes ages to load one page. Over 20 secs! Even I got only 10 players tracked. A: Make sure you set the caching time for the player skins to an high value. This will speed up the page load!

Q: I want to update from last recommended build to the newest approved version. A: Download the newest version, delete the installation folder and the install.php file and override all other files.

Q: The portal shows only the standard faces instead of the player skins. A: Make sure the cache/skins folder is writable by the portal and check if allow_url_fopen is enabled.

Q: How to set up mutli portal? A: First of all you need seperate database for each server/plugin. Or at least use different prefixes for each server you wanna track. If this is done and the database are initialized you have to install ONE portal like you would do it with only one server. After that go to the settings menu of the portal at go to the "Multi Portal" Section. Here you can enter informations for the other servers/databases. If there are some entries you will notice a new box on the portal main page.

... to be continued

配置

The plugin configuration is generated automatically on the first startup of the plugin. After you fill out the appropriate details, it should look similar to this:

debug: false             #Enables or disables the debug mode
log-prefix: 'Stats'      #The log message prefix. You don't need to change this.
database:                #MySQL server settings
  host: 'localhost'      #MySQL server address
  port: 3308             #MySQL server port
  name: 'pstats'
  prefix: 'stats_'       #The prefix of the stats tables. You only need to changes this if you are using the multi server setup
  user: 'user'           #MySQL username
  pass: 'qwerty'         #MySQL password
  reconnect_interval: 5  #The time in seconds the plugin waits between reconnect tries if the connection to the database is lost

Do not put the quotation marks around the port number and the boolean values.

高级配置

To access the configuration page click on the Admin link on the bottom right end of your stats homepage or open yourstatspage?page=admin in your web browser.

Now log in with your E-Mail and your password (You have set those during the installation process).