[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

    Gachapen

    I love this plugin, but now I need to transfer my stats from the hMod version to Bukkit... Any way to do this? Tried using my old "statsCache" from hMod, but all I got was: "MCStats failed to restore player statistics.".
    Thanks :)
     
  3. Offline

    deltahat

    I don't think you can. The hMod version stopped being supported a loooooong time ago. Sorry :(
     
  4. Offline

    Gachapen

    Well ok. Then I can suggest that you make it possible to manually change the stats of a player. Can be nice if you for example manage to delete your statsCache too. :)
     
  5. Offline

    Mosh Mage

    Maaaan! i'm so lazy im going to rant about it:

    You could at least provide a whole configuration, i read the whole readme before downloading (just to make sure everything was in order and was what i wanted) and then "you'll have to write all those yourself" kicked in.

    You sir, are no fun. Making me write configuration files. Blah. (lol)

    /me proceeds to copy paste needed stuff :)

    edit: im making all this fuss because i nano the shizz out of .yml no numpad sucks :x

    if you have a messy NGIX or Apache install, you might want to use this.
    create a MC folder under /var/www/
    if you are NOT starting /minecraft.sh AS SUPERUSER click here (open)

    and chmod the whole thing to a "webbers" group, then
    set that group as your secondary group (assuming you are the user who runs /minecraft.sh)
    if you dont know what i meant, you probably shouldnt be messing with that.

    Alternatly, you can avoid all this hassle by starting /minecraft.sh as a superuser:
    sudo ./minecraft.sh


    my config.yml (open)

    resourceSaveDirectory: /var/www/MC/
    statsBaseResource: mcstats
    # ignoreGroups: default
    # ignoreGrouplessPlayers: true
    webserverEnabled: false
    secondsBetweenSaves: 3600
    secondsBetweenPageRefreshes: 900
    # playersToPurge:


    Also: Could you (dev) add a /saveStatsNow to spit-out all the info? i set the between to 3600 and would lurve to see something generated JUST now to assure myself everything is working pretty fly :)
     
  6. Offline

    niftyapple

    I am trying to setup my public stats page. I am avoiding using the built in web server as i already have one setup and hate to have to open a separate port just for this. I am trying to copy the HTML, JS, JSON, and XML files over to the needed directory, and nothing shows up when i load them after copying. No errors pop up on my page, so i know the syntax is right. Is there something else I need to copy? Or can this for some reason not be done out of the server directory?


    EDIT: no data shows up after the page is formatted with the blue table and collums
     
  7. Offline

    deltahat

    Just change the value of resourceSaveDirectory in the config to point to somewhere in your web root.
     
  8. Offline

    Mosh Mage

    im going to say THIS only once. and that's all the help i have to give. EVER.

    http://forums.bukkit.org/posts/329915/
     
  9. Offline

    gasparn

    CB 818
    MCstats 2.7

    I'm having an issue with MCstats after the CB 818 upgrade:

    15:16:34 [SEVERE] Could not pass event PLAYER_MOVE to MCStats2
    java.lang.NullPointerException
    at java.util.ArrayDeque.addLast(ArrayDeque.java:242)
    at java.util.ArrayDeque.add(ArrayDeque.java:408)
    at com.nijiko.permissions.Entry.getAncestors(Entry.java:261)
    at com.nijiko.permissions.ModularControl.getGroups(ModularControl.java:629)
    at com.ryanmichela.MCStats2.service.GroupService.getGroups(GroupService.java:58)
    at com.ryanmichela.MCStats2.controller.StatsController.ignorePlayer(StatsController.java:168)
    at com.ryanmichela.MCStats2.controller.StatsController.travelAMeter(StatsController.java:74)
    at com.ryanmichela.MCStats2.controller.StatsPlayerListener.onPlayerMove(StatsPlayerListener.java:55)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:285)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java: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:217)
    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:401)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  10. Offline

    deltahat

    Upgrade to the latest version of permissions.
     
  11. Offline

    hayhay89

    Okay i need some help setting up.
    Im trying to set up the Stats on my Webserver while using my dedicated server to host the Minecraft server
    can someone give me a config layout of how this would work?
     
  12. Offline

    ariley92

    does this work with b818?
     
  13. Offline

    deltahat

  14. Offline

    hayhay89

    can anyone help me?
    Okay i need some help setting up.
    Im trying to set up the Stats on my Webserver while using my dedicated server to host the Minecraft server
    can someone give me a config layout of how this would work?
     
  15. Offline

    deltahat

    Are you using two different computers?
     
  16. Offline

    fffizzz

    Whenever I modify the .html file to remove a column, it always gets added back. How can I prevent the script from overwriting it besides setting it to readonly?
     
  17. Offline

    deltahat

    Read the Readme. It tells you everything you need to know.
     
  18. Offline

    Phaedrus

    I just got it setup with 818 and Apache, and it's working great. Only problem is that the stats webpage disapeared after I reloaded permissions. And the iconomy balances are blank. I'm using mysql for iconomy.
     
  19. Offline

    Delavor

    deltahat, if you add mysql support without webserver this script will be best!
     
  20. Offline

    Phaedrus

    I'm getting spammed with these to the point where the server eventually runs out of all 16 gigs of ram and stops responding. The event changes from PLAYER_MOVE to ENTITY_DAMAGE etc.

    Using Permssions 2.7.4 and bukkit 819

    Code:
    2011-06-03 21:04:54 [SEVERE] Could not pass event PLAYER_MOVE to MCStats2
    java.lang.NullPointerException
    	at com.nijiko.permissions.Control.inSingleGroup(Control.java:501)
    	at com.ryanmichela.MCStats2.service.GroupService.getGroups(GroupService.java:60)
    	at com.ryanmichela.MCStats2.controller.StatsController.ignorePlayer(StatsController.java:168)
    	at com.ryanmichela.MCStats2.controller.StatsController.travelAMeter(StatsController.java:74)
    	at com.ryanmichela.MCStats2.controller.StatsPlayerListener.onPlayerMove(StatsPlayerListener.java:55)
    	at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:285)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java: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:217)
    	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:401)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  21. Offline

    Mosh Mage

    i think you need to update to latest permissions;
    why? because i have latest permissions and b818 - it works like a charm :)

    oh yeah. b819. yep. nevermind me :) sorry
     
  22. Offline

    hayhay89

    Im using a purchased Webhosting service.
    And a purchased Dedicated server which are in on two different computers.
     
  23. Offline

    Phaedrus

    Well all it says on the main page is Permissions 2.5.4+. If it requires Permissions 3.0 let me know, cause I haven't made the transition yet.
     
  24. Offline

    Exidous

    is there another way to sort the list by say total time played instead of alphabetically? I thought at one time you could sort by the column list heading.
     
  25. Any one able to FTP the config to their web server?

    I put FTP info in but it thinks it is a path on the local machine :/
     
  26. Offline

    virtualism

    Same. cb 818, lighttpd, mysql for iconomy
     
  27. Offline

    louis zook

    I just downloaded the 2.7 zip file from your github. When I did a check on the version it say 2.6 not 2.7 in the plugin file. Is it possible you uploaded an old version?
    Thanks
    lzook
     
  28. Offline

    deltahat

    More likely I forgot to increment the value in the plugin's yml file.
     
  29. Offline

    Syntaxlb

    Hi,

    I'm in #819 bukkit, with Nethrar for the nether world.

    MCStat work fine on normal world, but in nether world i have this error :

    Code:
    2011-06-07 18:04:34 [SEVERE] Could not pass event PLAYER_JOIN to MCStats2
    java.lang.NullPointerException
        at java.util.ArrayDeque.addLast(ArrayDeque.java:242)
        at java.util.ArrayDeque.add(ArrayDeque.java:408)
        at com.nijiko.permissions.Entry.getAncestors(Entry.java:262)
        at com.nijiko.permissions.ModularControl.getGroups(ModularControl.java:638)
        at com.ryanmichela.MCStats2.service.GroupService.getGroups(GroupService.java:58)
        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:243)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:123)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:96)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-07 18:04:37 [SEVERE] Could not pass event PLAYER_MOVE to MCStats2
    java.lang.NullPointerException
        at java.util.ArrayDeque.addLast(ArrayDeque.java:242)
        at java.util.ArrayDeque.add(ArrayDeque.java:408)
        at com.nijiko.permissions.Entry.getAncestors(Entry.java:262)
        at com.nijiko.permissions.ModularControl.getGroups(ModularControl.java:638)
        at com.ryanmichela.MCStats2.service.GroupService.getGroups(GroupService.java:58)
        at com.ryanmichela.MCStats2.controller.StatsController.ignorePlayer(StatsController.java:168)
        at com.ryanmichela.MCStats2.controller.StatsController.travelAMeter(StatsController.java:74)
        at com.ryanmichela.MCStats2.controller.StatsPlayerListener.onPlayerMove(StatsPlayerListener.java:55)
        at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:285)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java: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:217)
        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:401)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  30. Offline

    deltahat

    Make sure you are running the latest version of Permissions.
     
  31. Offline

    mattekure

    I am running iConomy 5 using sqlite and the money column is blank.

    I think this was previously requested, but would it be possible to get more statistics per player. Specifically I would like a breakdown of the types of blocks mined/placed, ie. Dirt: 6, Glass: 10, etc.
     

Share This Page