McServerStats

McServerStats

Version: 1.0

CraftBukkit Build 1.2.5-R4.0 [Tested]

Info

This Plugin gives you fun and useful facts about your server such as Players Killed, Blocks Broken and How many days have passed. These are accessible by commands such as /mss stats. The Stats display is able to be customized to your needs and you can just not include the lines you don't want.

McServerStats Metrics

Download Download

Commands

/McServerStats - The Plugins command guide You can also use /mss

/mss stats - This will display the stats of the server to the player

/mss reload - This will reload the plugin in case you make any changes to the config

Permissions

Mcserverstats.mss -This gives access to /mss command

Mcserverstats.reload - This gives access to reload command

Mcserverstats.stats - This gives access to /mss stats command

Stats

You can view totals for all servers in nice line graphs Here

Example

McServerStats

Config

Serverstats:
#Set to false to disable the plugin#
  enabled: true
#This is set in seconds#
  AutoSaveEvery: 30

  stats:
    message:
    - '&b======&2McServerStats&b======'
    - '&9Server Totals:'
    - '&2Joins: &c%joins%'
    - '&2Players: &c%players%'
    - '&2Mobs Killed: &c%mobs%'
    - '&2Items Crafted: &c%itemscrafted%'
    - '&2Items Smelted: &c%itemsSmelted%'
    - '&2Days Passed: &c%days%'
    - '&9Player Totals:'
    - '&2Kills: &c%kills%'
    - '&2Deaths: &c%deaths%'
    - '&2Chat: &c%chat%'
    - '&2Commands: &c%commands%'
    - '&2Exp Gained: &c%exp%'
    - '&9Block Totals:'
    - '&2Placed: &c%placed%'
    - '&2Destroyed: &c%destroyed%'
    - '&2Signs Placed: &c%signs%'
    - '&2Crops Harvested: &c%crops%'
    - '&2Diamonds Mined: &c%diamonds%'
#You can remove any of the lines you dont wish to be shown when #
#Players do the command /mss stats #
#You can edit this to your liking and color codes work.

Changelog

- v1.0

  • Release Of Plugin

-v1.1

  • Fixed Bug with chat totals not working with plugins such as ichat
  • Fixed /mss reload wiping stats
  • Added auto save interval in config defaulted at 30 seconds
  • Fixed stats being wiped randomly

You must login to post a comment. Don't have an account? Register to get one!

  • 5 comments
  • Avatar of Tuckapokemon Tuckapokemon Dec 20, 2013 at 01:57 UTC - 0 likes

    Are there any other stats that I can put in besides these that are already listed? For example, I want to put more stats on here such as total mobs killed, or maybe a specific mob, like, in world/stats, pig kills.

    I'm new...

  • Avatar of McLuke300 McLuke300 Jul 22, 2012 at 07:40 UTC - 0 likes

    @Badman959: Go

    Also the players and days are calculates using the map files so can't be reset

    BFAK:McLuke500,90676982,1bbc29c5a606ecb54c582600e4321c5b57c72e8fcf37905d093c89add6f3d0cf

  • Avatar of McLuke300 McLuke300 Jul 22, 2012 at 07:37 UTC - 0 likes

    @Badman959

    I'm currently on holiday and only have an iPad but I have bugs to fix and To fix chat events not working with iChat and to have it save without giving errors and I'm thinking of adding a reset command but it saves the old stats to a stats.old.bin.

  • Avatar of Badman959 Badman959 Jul 22, 2012 at 00:22 UTC - 0 likes

    Please reply to my comment/question, as this plugin is in V1.0 i would expect the Dev to be active on the website....

    BFAK:Badman959,90702481,62afaadec21bcb81fcfff38b7d00f5ce8dc4ed4fed89ab74ca84d040f1c6a1d6
    Uploaded with ImageShack.us
  • Avatar of Badman959 Badman959 Jul 18, 2012 at 18:16 UTC - 0 likes

    Hi, let me just say how i like this plugin, but it seems to be missing one thing.
    An admin command to reset stats for all, or selected groups/factions, for if i wanted to reset the server but not the world files.

    ALSO. When i edit the config.yml it saves but when i reload the server or do /mss reload, it gives me this, and then resets the config.yml back to stock.

    19:20:07 [SEVERE] Cannot load plugins\McServerStats\config.yml
    org.bukkit.configuration.InvalidConfigurationException: while scanning for the next token
    found character '\t' that cannot start any token
    in "<string>", line 11, column 1:
    - '&2Mobs Killed: &c%mobs%'
    ^
    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138)
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:105)
    at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:175)
    at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117)
    at me.mcluke300.mcserverstats.mcserverstats.onCommand(mcserverstats.java:330)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:484)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:822)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:782)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:765)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:114)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:83)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:569)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:461)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: while scanning for the next token
    found character '\t' that cannot start any token
    in "<string>", line 11, column 1:
    - '&2Mobs Killed: &c%mobs%'
    ^
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:358)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseIndentlessSequenceEntry.produce(ParserImpl.java:537)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
    at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53)
    ... 18 more

    Last edited Jul 18, 2012 by Badman959
  • 5 comments

Facts

Date created
Jul 17, 2012
Categories
Last update
Jul 24, 2012
Development stage
Release
License
All Rights Reserved
Curse link
McServerStats
Downloads
2,414
Recent files

Authors