Class StatsExample
java.lang.Object
net.md_5.bungee.api.plugin.Plugin
de.simonsator.clans.example.stats.StatsExample
- All Implemented Interfaces:
de.simonsator.partyandfriends.clan.api.ClanStat
public class StatsExample
extends net.md_5.bungee.api.plugin.Plugin
implements de.simonsator.partyandfriends.clan.api.ClanStat
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
void
onDisable method.void
onEnable()
onEnable method.void
stats
(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pSender, de.simonsator.partyandfriends.clan.api.Clan pClan) This method gets executed when a player calls the command /clan stats <clan>Methods inherited from class net.md_5.bungee.api.plugin.Plugin
getDataFolder, getDescription, getExecutorService, getFile, getLogger, getProxy, getResourceAsStream, onLoad
-
Constructor Details
-
StatsExample
public StatsExample()
-
-
Method Details
-
onEnable
public void onEnable()onEnable method. In this method the Clan stat gets registered.- Overrides:
onEnable
in classnet.md_5.bungee.api.plugin.Plugin
-
onDisable
public void onDisable()onDisable method. In this method the Clan stat gets unregistered (optional)- Overrides:
onDisable
in classnet.md_5.bungee.api.plugin.Plugin
-
stats
public void stats(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pSender, de.simonsator.partyandfriends.clan.api.Clan pClan) This method gets executed when a player calls the command /clan stats <clan>- Specified by:
stats
in interfacede.simonsator.partyandfriends.clan.api.ClanStat
- Parameters:
pSender
- The player who executed /clan stats <clan>pClan
- The clan of which the stats was requested (it can be the clan in which the player is but it must not be the clan in which the player is it can also be another clan).
-
getName
- Specified by:
getName
in interfacede.simonsator.partyandfriends.clan.api.ClanStat
-