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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    onDisable method.
    void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StatsExample

      public StatsExample()
  • Method Details

    • onEnable

      public void onEnable()
      onEnable method. In this method the Clan stat gets registered.
      Overrides:
      onEnable in class net.md_5.bungee.api.plugin.Plugin
    • onDisable

      public void onDisable()
      onDisable method. In this method the Clan stat gets unregistered (optional)
      Overrides:
      onDisable in class net.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 interface de.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

      public String getName()
      Specified by:
      getName in interface de.simonsator.partyandfriends.clan.api.ClanStat