Class GenesisPointsPlugin

java.lang.Object
studio.magemonkey.genesis.pointsystem.GenesisPointsPlugin
Direct Known Subclasses:
GenesisPointsPluginFailed, GenesisPointsPluginGadgetsMenu, GenesisPointsPluginGringotts, GenesisPointsPluginJobs, GenesisPointsPluginKingdoms, GenesisPointsPluginNone, GenesisPointsPluginPlayerPoints, GenesisPointsPluginTokenEnchant, GenesisPointsPluginTokenManager, GenesisPointsPluginVotingPlugin

public abstract class GenesisPointsPlugin extends Object
  • Constructor Details

    • GenesisPointsPlugin

      public GenesisPointsPlugin(String mainName, String... nicknames)
  • Method Details

    • getName

      public String getName()
      Get the name of the points plugin
      Returns:
      name
    • getNicknames

      public String[] getNicknames()
      Get the nicknames of the points plugin
      Returns:
      nicknames
    • isAvailable

      public boolean isAvailable()
      Check if points plugin is available
      Returns:
      available or not
    • getPoints

      public abstract double getPoints(org.bukkit.OfflinePlayer player)
      Get the points from an offline player
      Parameters:
      player - player to get points from
      Returns:
      points of player
    • setPoints

      public abstract double setPoints(org.bukkit.OfflinePlayer player, double points)
      Set the points of a player
      Parameters:
      player - player to modify
      points - points to set
      Returns:
      points to set
    • takePoints

      public abstract double takePoints(org.bukkit.OfflinePlayer player, double points)
      Take points from a player
      Parameters:
      player - the player to modify
      points - points to take
      Returns:
      amount taken
    • givePoints

      public abstract double givePoints(org.bukkit.OfflinePlayer player, double points)
      Give points to a player
      Parameters:
      player - player to modify
      points - the amount to give
      Returns:
      amount given
    • usesDoubleValues

      public abstract boolean usesDoubleValues()
      Use double values
      Returns:
      true or false
    • register

      public void register()
      Register a plugin into the API