[INACTIVE][ADMIN] MCStats v2.7 - Minecraft player statistics [868]

Discussion in 'Inactive/Unsupported Plugins' started by deltahat, Mar 15, 2011.

  1. Offline

    deltahat

    MCStats - Minecraft player statistics:
    Version: v2.7

    MCStats is a statistics plugin for the bukkit. MCStats periodically generates xml,
    json, js, and html files containing server statistics. Optionally, MCStats can also serve these files using an embedded web server. Using the embedded web server, the html stats report can be served directly from your Minecraft server. No need for messy apache installs.

    For group support to work you must also install and configure the Permissions plugin v2.5.4+.

    Please read the README - https://github.com/rmichela/MCStats2

    Features:
    • Tracks many player statistics
    • Built in web server
    • Integrates with external systems using raw data feeds
    • Supports reading group affiliation from Permissions
    • Supports reporting iConomy account balances
    Download: https://github.com/rmichela/MCStats2/downloads
    Source: https://github.com/rmichela/MCStats2

    Changelog (open)

    Version 2.1
    • Initial port to bukkit
    Version 2.2
    • Fixed initial startup config issues. Now generates meaningful config when first initialized.
    • Fixed directory problems that forced files under Plugins directory
    Version 2.3
    Version 2.4
    • Added ignoreGroups config option
    Version 2.5
    • Fixed group name case problems
    • Created Ops group based on ops.txt
    • Only show groups player is explicitly assigned to
    • Embedded web server can now serve customized html report
    Version 2.5.1
    • Bukkit 602 support
    Version 2.6
    • Fixed bug where players in default group were erroneously ignored.
    • Fixed incompatibility with GroupManager FakePermission
    • Verified support with CB612, MC2.4, and Permissions 2.5.5
    Version 2.6.1
    • Fixed strange incompatibility with iConomy.
    Version 2.7
    • Fixed Permissions group loading bug
    • Fixed inaccurate step count bug
    • Added proper iConomy support
     
  2. Offline

    deltahat

    Those detailed statistics are available via the json data feed. You will have to write your own UI to consume this data.
     
  3. Offline

    Fujikatoma

    Nice Plugin :) but can u make a command like /mstats to loop up the player stats ?
    If i fail and there iss a command like this pls pm me <3
     
  4. Offline

    baffu

    Disregard this, I figured it out!
     
  5. Offline

    derchris

    I'm currently testing it with the latest CB release (848), and get the following error:

    Is this anything you can work with?

    Code:
    21:18:00 [SEVERE] Error occurred while enabling MCStats2 v2.6 (Is it up to date?): null
    java.lang.NullPointerException
            at com.ryanmichela.MCStats2.StatsPlugin.onEnable(StatsPlugin.java:112)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:792)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    It also says 2.6, but downloaded the latest version from Github.
     
  6. Offline

    deltahat

    848 isn't an RB. Could be anything.
     
  7. Offline

    derchris

    I agree this is no RB, but I get the same error with the RB for 1.6.
     
  8. Offline

    deltahat

    Strange. I'm running 818 on a production server and MCStats without incident.
     
  9. Offline

    rmb938

    money column is blank
     
  10. Offline

    deltahat

    Known problem with latest version of iConomy.
     
  11. Offline

    rmb938

    Alright.
     
  12. Offline

    Jackzilla88

    Alright, I've spent the last 2 hours trying to configure this, but my noobishness is overwhelming me. I'm using a Brohoster hosted server, and I want the files to post to a subdomain http://mcstats.<myservername>.net, so when people go to that subdomain, the HTML file or XML file loads. If anyone could help me make or work out a config, I'll provide any details needed like portnumber or IP. I apologize if my inadequacy offends anyone Thank you!
     
  13. Offline

    deltahat

    I use MCStats on Brohoster. You can't do what you want to do. DNS doesn't work that way. MCStats serves up its pages from the same IP address as your minecraft server, so it will have the same domain name.

    To configure MCStats for Brohoster, change the http port in the config to anything higher than 40000. Say you choose 41214, then the url for your stats will be http://myserfername.net:41214/mcstats.html.

    This is the config I use on my server:
    Code:
    # Check README for more settings
    # https://github.com/rmichela/MCStats2
    
    resourceSaveDirectory: plugins/MCStats2/stats
    statsBaseResource: mcstats
    # ignoreGroups: default
    # ignoreGrouplessPlayers: true
    webserverEnabled: true
    httpPort: 40922
    httpServerContextRoot: /
    
     
  14. Offline

    Phaedrus

    Bukkit RB 860 and permissions 3.1 and it's working fine with an Apache webserver.

    Now if only the iconomy money column worked, and you could sort the columns.
     
  15. Offline

    Exidous

    so download the jquery.tablesorter.min.js and put it into the root of the web directory? will this able the sorting?
     
  16. Offline

    Linaks

    How can i add someone of my users more hours ?
    I tried to add 20 hours from 0.91 hours to 20.91 hours, but this edit didn't worked :(
    Can anyone tell me, how I can edit the totalplayedtime of my users?
     
  17. There isn't a 2.7, is there?

    When i try download the 2.7 version, in the plugin.yml stay further more 2.6 and groups will show wrongly and some players for example are mod and will shown as non-grouped...
     
  18. Offline

    DragonSupremacy

    Any chance this can support MySQL rather then flatfile?

    edit: I see on my server's stat page that it does update stats, but as shown in the Server log, it throws errors upon each join, each movement, and each dropped item

    (CB #860, MCStats v2.7)
     
  19. Offline

    Exidous

    anyone??
     
  20. Offline

    Fujikatoma

    SimpleQuestion:
    I need to transfer the Infos to anothere Webspace, somone know how to ?
     
  21. Offline

    djw

    That's half the solution, you need to also edit the html so it uses your local copy rather than the tablesorter one.
     
  22. Offline

    meggawatts

  23. Offline

    Trigg3rlHappy

    Pretty noobish question but how do i get this onto a page?

    When i go onto my ip totalcraft.dyndns.info it sais theres a page but how do i get this stuff on it. Sorry I dont know much about website stuff
     
  24. Offline

    asw13

    Hello, first of all, I have to say that I like pretty much your plugin, thanks!
    But I'm having issues as you can see below:

    (I just tried to upgrade both Permission and Mcstats but it didn't solve the problem)
    Bukkit 860
    Permissions 3.1.5b
    MCStats 2.7
    Iconomy 5.01


    Code:
    [SEVERE] Could not pass event PLAYER_MOVE to MCStats2
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1
    at java.lang.String.substring(String.java:1934)
    at com.ryanmichela.MCStats2.service.GroupService.toTitleCase(GroupServic
    e.java:85)
    at com.ryanmichela.MCStats2.service.GroupService.getGroups(GroupService.
    java:67)
    at com.ryanmichela.MCStats2.controller.StatsController.ignorePlayer(Stat
    sController.java:168)
    at com.ryanmichela.MCStats2.controller.StatsController.travelAMeter(Stat
    sController.java:74)
    at com.ryanmichela.MCStats2.controller.StatsPlayerListener.onPlayerMove(
    StatsPlayerListener.java:55)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.ja
    va:285)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:310)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:139)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    EDIT:
    My webpage (Translated in French):
    http://conseiljedi.hebfree.org/mcstats.php

    I'm using Iconomy too but I can't see any information about money and nor can I sort the table...

    Have you solutions for me?
     
    DragonSupremacy likes this.
  25. Offline

    Trigg3rlHappy

    How do you give permission to the account because i just made an account on my linux server for just minecraft
     
  26. Offline

    DragonSupremacy


    I know the blank iConomy thing is because of iConomy v5, other then that, I have the same error, just with PermissionsEx instead of Permissions 3.1.5b, and I get errors like that upon movement, dropping blocks, and joining the server
     
  27. Offline

    asw13

    Ok, thank you for the answer, anyone else to solve the errors problem?
     
  28. Offline

    deltahat

    PermissionsEx changed it's API from Permissions 3.1.
     
  29. Offline

    asw13

    Yes but the problem is here with Permissions 3.1.5b too.
     
  30. Offline

    Jordy97

    ive been Trying to get this to work for 2 hours now how do i upload it to somewhere all my players can see it ive read the READ-ME but i still dont know
     
  31. Offline

    DragonSupremacy

    Make sure the internal webserver (of the plugin) is enabled. (only if you don't have apache or the likes)

    Provided you have the plugin's webserver, configure the following nodes present in the readme

    Code:
    * webserverEnabled       -
    Enables or disables the embedded web server.
    
    * httpServerContextRoot  -
    The path part of the embedded web server's url. Must begin and end with a slash (/).    Example: /foo/bar/ => [URL]http://host.com/foo/bar/mcstats.html[/URL]   Note: This property only controls the middle part of the url. Not the file name or the server name.
    
    * overwriteHtmlReport -
    Default True. Sets or disables the automatic overwriting of the HTML report file. Useful for   modding the HTML report without installing a complete web server. When set to False, the internal   web server will continue to serve the generated HTML report, even if it is modified (for a mod,   for example).
    
    * httpBacklog
    - The number of http requests to queue before dropping requests.
    
    * httpPort
     - The port the embedded web server listens on.
    
    * resetPlaytime
    - Default False. If set to true, all player playtimes will be reset to zero.
    
    * ignoreGroups - Default empty. A list of Permissions groups that MCStats will ignore, separated by spaces.   Note: If you will still need to purge players who were created before this setting was set.
    
     * ignoreGrouplessPlayers
    - Default false. When true, players with no explicit groups remaining after removing any   configured in ignoreGroups will be ignored. This setting also ignores all players   in the default group when true.
    
    * playersToPurge
     - A list of player names to remove from the stats cache, separated by spaces.
    
    * httpPostUrl
     - Default empty. When set to a URL, MCStats will attempt to post its json data to that url   every time the stats are committed to disk.
    
    * httpPostConnectTimeout
     - Default 300. The number of milliseconds to wait before giving up on an http post.
    
    * enableSerializerCache
     - Default True. When true, stats served up by the internal web server will only be regenerated every   [secondsBetweenSaves] seconds. If false, stats are generated in real-time. Setting this to false   could have a negative affect on server performance.
    
     

Share This Page