[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

    You are using the Neither. Please see elsewhere in this thread about how to fix group permission errors in the Neither.
     
  3. Offline

    imaxorz

    Is this because of permissions?

    My permissions file for the nether mimics the world one.

    Thats going to be hassle having to do this every time adding a player :(

    I am having the same issue.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  4. Offline

    deltahat

    Usually it is. Also make sure your Permissions plugin is up to date. As you can see, the top line of the stack trace says
    Code:
    at com.nijiko.permissions.Control.getGroups(Control.java:625)
    This indicates the problem is in Permissions.

    Did this at least fix your problem? If so please let TheYeti know that there is a bug in Permissions and point him here.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  5. Offline

    imaxorz


    I fixed it using the same fix that someone else did on page 6. (see my above post)

    I posted the problem in permissions thread too.

    Thank you :)
     
  6. Offline

    Bonta-kun1981

    Here's the modified HTML and config file! Maybe I've done something wrong. (rar-file 3KB)
     
  7. Offline

    deltahat

    Just to be sure, you are using the latest version of MCStats, correct?
     
  8. Offline

    Bonta-kun1981

    Yes! It all works normally, with your file! Here
    would change only the width that I can include it into the page
     
  9. Offline

    Dagger

    Is it just me, or does the "Meters Traveled" stat not work properly? It seems to count up far faster than my actual number of meters traveled.

    As an example, from Bonta-kun1981's link above, there's one player who has traveled 13351 meters in 0.33 hours of playtime, which is about 11.2 m/s. Since the maximum minecart travel speed is 8 m/s, this seems a bit unlikely.
     
  10. Offline

    deltahat

    Yup. thats a bug. I'll fix it in the next release. (most likely tonight)
     
  11. Offline

    Rick

    Is there any way to make the groups work with EssentialsGroupManager & EssentialsGroupBridge? Because I use mcmyadmin which integrates with essentials. Thanks

    P.S. It use to work with groupmanager which also integrates with mcma but is no longer up to date
     
  12. Offline

    Bonta-kun1981

    I went with compass of worldedit! Is not a bug!
     
  13. @deltahat
    My stats page is no longer showing my group for some reason. And also new members that join the default group (called Guests in my permissions file) show, but also have no group. You can see it on the stats link from my signature.
     
  14. Offline

    Indyhouse

    This plugin is awesome, but is not picking up my groups from Permissions, so I can't set it to ignore Guests. Consequently, I can see my stats pages filling up with a ton of non-players.
     
  15. Offline

    deltahat

    MCStats 2.7 Released

    Bugs
    • Fixed inaccurate step count bug
    • Fixed permissions group loading
    Features
    • Added iConomy account balances
     
  16. Offline

    divad

    Thx

    PS: edit your post your release is the 2.7 not 2.6 ;o)
     
  17. Offline

    Rick

    How do I hide the players online in mcstats.html?
     
  18. Offline

    deltahat

    Edit out the section you don't want and set overwriteHtmlReport to false in the config.
     
  19. Offline

    Rick

    I ended up deleting

    //build the Players Online list
    var playersOnline = document.getElementById('playersOnlineList');
    mcStatsRawData.playersOnline.sort(statsSort);
    for(i in mcStatsRawData.playersOnline)
    {
    var span = document.createElement('span');
    span.setAttribute('class', 'pOnline ' + groupConcat(mcStatsRawData.playersOnline.groups));
    span.innerHTML = mcStatsRawData.playersOnline.playerName;
    span.innerHTML += ' ';
    playersOnline.appendChild(span);
    }

    on the copied mcstats2.html that I use instead of mcstats.html. Will there be a problem when I do that?

     
  20. Offline

    deltahat

    Shouldn't be.
     
  21. Code:
    2011-04-19 00:18:15 [SEVERE] Could not pass event PLAYER_JOIN to MCStats2
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1
    	at java.lang.String.substring(Unknown Source)
    	at com.ryanmichela.MCStats2.service.GroupService.toTitleCase(GroupService.java:85)
    	at com.ryanmichela.MCStats2.service.GroupService.getGroups(GroupService.java:67)
    	at com.ryanmichela.MCStats2.controller.StatsController.ignorePlayer(StatsController.java:168)
    	at com.ryanmichela.MCStats2.controller.StatsController.logIn(StatsController.java:40)
    	at com.ryanmichela.MCStats2.controller.StatsPlayerListener.onPlayerJoin(StatsPlayerListener.java:36)
    	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:204)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    	at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:98)
    	at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:87)
    	at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:68)
    	at net.minecraft.server.Packet1Login.a(SourceFile:46)
    	at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
    	at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:34)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    craftbukkit 677
     
  22. Offline

    deltahat

    What are your group names from your Permissions config?
     
  23. Offline

    Bonta-kun1981

    :)Thanks for the update! At last it works Link [diamond][diamond][diamond][diamond][diamond]
     
  24. Offline

    wassilij

    Can you make ingame commands?
    like /topplayers /toplist or something
     
  25. Offline

    ChadTheDJ

  26. Offline

    deltahat

    Are you getting any errors on the console?
     
  27. Offline

    Exidous

    How does the internal web server resolve the hostname? Seems i cannot get it to resolve at all. says in the console that the webserver is running on port 8080, all ports forwarded and still cannot resolve. any ideas?
     
  28. Offline

    deltahat

    If you can access the stats by IP address, then your problem lies with DNS.
     
  29. Offline

    Exidous

    I cannot even pull up the page locally...

    nvm

    im stupid

    working....

    I do however have another question. Does mcstats.html get written automatically every time the server restarts? I have tried to customize the layout but it always reverts back to default after a restart.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  30. Offline

    deltahat

    Set overwriteHtmlReport to false in the config.
     
  31. Offline

    Exidous

    what is the format?

    overwriteHtmlReport false

    Like that?

     

Share This Page