me.armar.plugins.autorank.statsmanager
Interface StatsPlugin

All Known Implementing Classes:
DummyHandler, StatsHandler

public interface StatsPlugin


Method Summary
 java.lang.String getCorrectStatName(java.lang.String statType)
          Get the correct name of this stat
 int getNormalStat(java.lang.String statType, java.lang.String[] arguments)
          Get the value of a stat.
 boolean isEnabled()
          Check whether the current stats plugin is enabled or not.
 

Method Detail

isEnabled

boolean isEnabled()
Check whether the current stats plugin is enabled or not.

Returns:
true if enabled; false otherwise

getNormalStat

int getNormalStat(java.lang.String statType,
                  java.lang.String[] arguments)
Get the value of a stat. You can only get stats that are of StatsPlugin.statType.

NOTE: returns -1 when the current stats plugin doesn't support this stat.

Parameters:
statType - Stat you want to get
arguments - Provide arguments for the stat (playerName, worldName). 1st argument has to be the playername, 2nd argument must be world (can be null)
Returns:
value of the stat; -1 when the current stats plugin doesn't support this stat; -2 if stat name is invalid

getCorrectStatName

java.lang.String getCorrectStatName(java.lang.String statType)
Get the correct name of this stat

Parameters:
statType - stat name that can be incorrect
Returns:
official name of the stat or null if not valid