Class GenesisPointsPlugin
java.lang.Object
studio.magemonkey.genesis.pointsystem.GenesisPointsPlugin
- Direct Known Subclasses:
GenesisPointsPluginFailed,GenesisPointsPluginGadgetsMenu,GenesisPointsPluginGringotts,GenesisPointsPluginJobs,GenesisPointsPluginKingdoms,GenesisPointsPluginNone,GenesisPointsPluginPlayerPoints,GenesisPointsPluginTokenEnchant,GenesisPointsPluginTokenManager,GenesisPointsPluginVotingPlugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name of the points pluginString[]Get the nicknames of the points pluginabstract doublegetPoints(org.bukkit.OfflinePlayer player) Get the points from an offline playerabstract doublegivePoints(org.bukkit.OfflinePlayer player, double points) Give points to a playerbooleanCheck if points plugin is availablevoidregister()Register a plugin into the APIabstract doublesetPoints(org.bukkit.OfflinePlayer player, double points) Set the points of a playerabstract doubletakePoints(org.bukkit.OfflinePlayer player, double points) Take points from a playerabstract booleanUse double values
-
Constructor Details
-
GenesisPointsPlugin
-
-
Method Details
-
getName
Get the name of the points plugin- Returns:
- name
-
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 modifypoints- 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 modifypoints- 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 modifypoints- 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
-