Package noppes.npcs.api.handler
Interface IPlayerFactionData
-
public interface IPlayerFactionDataTracks a player's faction standing points.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPoints(int id, int points)Adds points to the player's standing with the given faction.intgetPoints(int id)Returns the player's points for the given faction.voidsetPoints(int id, int points)Sets the player's points for the given faction.
-
-
-
Method Detail
-
getPoints
int getPoints(int id)
Returns the player's points for the given faction.- Parameters:
id- the faction ID.- Returns:
- the faction points.
-
addPoints
void addPoints(int id, int points)Adds points to the player's standing with the given faction. Use negative values to decrease.- Parameters:
id- the faction ID.points- the points to add.
-
setPoints
void setPoints(int id, int points)Sets the player's points for the given faction.- Parameters:
id- the faction ID.points- the new point value.
-
-