|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.armar.plugins.autorank.statsmanager.handlers.DummyHandler
public class DummyHandler
This class is used when no stats plugin is found. This does not do anything, but it allows the stats plugin to be gone so that there are no errors.
| Constructor Summary | |
|---|---|
DummyHandler()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyHandler()
| Method Detail |
|---|
public boolean isEnabled()
StatsPlugin
isEnabled in interface StatsPlugin
public int getNormalStat(java.lang.String statType,
java.lang.String[] arguments)
StatsPluginStatsPlugin.statType.
NOTE: returns -1 when the current stats plugin doesn't support this stat.
getNormalStat in interface StatsPluginstatType - Stat you want to getarguments - Provide arguments for the stat (playerName, worldName). 1st argument has to be the playername, 2nd argument must be world (can be null)
public java.lang.String getCorrectStatName(java.lang.String statType)
StatsPlugin
getCorrectStatName in interface StatsPluginstatType - stat name that can be incorrect
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||