Package com.xSavior_of_God.HeroxVote.api
Class HeroxPlayer
java.lang.Object
com.xSavior_of_God.HeroxVote.api.HeroxPlayer
Deprecated.
Work in Progress, don't use it yet!
Work in Progress
This class is part of the HeroxVote API, which is designed to manage player data Actually, this class is not woking, please don't use it.HeroxPlayer
This class is used to manage player data.- Since:
- 2020-12-27
- Version:
- 7.0.2
- Author:
- xSavior_of_God
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleDeprecated.Gets the balance for this player.doubleDeprecated.Gets the balance for the current month.doubleDeprecated.Gets the balance for the last month.doubleDeprecated.Gets the balance for today.doubleDeprecated.Gets the balance for the week.Deprecated.Gets the last sync time for this player.org.bukkit.OfflinePlayerDeprecated.String[]Deprecated.Gets the services voted today by this player.intgetVotes()Deprecated.intDeprecated.Gets the number of votes for the current month.intDeprecated.Gets the number of votes for the last month.intDeprecated.Gets the number of votes today.intDeprecated.Gets the number of votes for the week.booleanDeprecated.Checks if the player has claimed their MCITA reward.booleanDeprecated.Checks if the player has voted on MCITA.booleanDeprecated.Checks if the player has claimed their NameMC reward.booleanDeprecated.Checks if the player has voted on NameMC.voidsetBalance(double balance) Deprecated.Sets the balance for this player.voidsetBalanceCurrentMonth(double balanceCurrentMonth) Deprecated.Sets the balance for the current month.voidsetBalanceLastMonth(double balanceLastMonth) Deprecated.Sets the balance for the last month.voidsetBalanceToday(double balanceToday) Deprecated.Sets the balance for today.voidsetBalanceWeekly(double balanceWeekly) Deprecated.Sets the balance for the week.voidsetLastSync(String lastSync) Deprecated.Sets the last sync time for this player.voidsetmCITAClaimed(boolean mCITAClaimed) Deprecated.Sets the claiming status for MCITA.voidsetmCITAVoted(boolean mCITAVoted) Deprecated.Sets the voting status for MCITA.voidsetNameMCClaimed(boolean nameMCClaimed) Deprecated.Sets the claiming status for NameMC.voidsetNameMCVoted(boolean nameMCVoted) Deprecated.Sets the voting status for NameMC.voidsetPlayer(org.bukkit.OfflinePlayer player) Deprecated.Sets the player for this HeroxPlayer instance.voidsetServicesVotedToday(String[] servicesVotedToday) Deprecated.Sets the services voted today by this player.intsetVotes(int votes) Deprecated.Sets the number of votes for this player.voidsetVotesCurrentMonth(int votesCurrentMonth) Deprecated.Sets the number of votes for the current month.voidsetVotesLastMonth(int votesLastMonth) Deprecated.Sets the number of votes for the last month.voidsetVotesToday(int votesToday) Deprecated.Sets the number of votes today.voidsetVotesWeekly(int votesWeekly) Deprecated.Sets the number of votes for the week.
-
Constructor Details
-
HeroxPlayer
public HeroxPlayer()Deprecated.
-
-
Method Details
-
getPlayer
public org.bukkit.OfflinePlayer getPlayer()Deprecated.- Returns:
- the player associated with this HeroxPlayer instance.
-
setPlayer
public void setPlayer(org.bukkit.OfflinePlayer player) Deprecated.Sets the player for this HeroxPlayer instance.- Parameters:
player- The OfflinePlayer to set.
-
getVotes
public int getVotes()Deprecated.- Returns:
- the number of votes
-
setVotes
public int setVotes(int votes) Deprecated.Sets the number of votes for this player.- Parameters:
votes- The number of votes to set.- Returns:
- The updated number of votes.
-
getBalance
public double getBalance()Deprecated.Gets the balance for this player.- Returns:
- The balance.
-
setBalance
public void setBalance(double balance) Deprecated.Sets the balance for this player.- Parameters:
balance- The balance to set.
-
getVotesToday
public int getVotesToday()Deprecated.Gets the number of votes today.- Returns:
- The number of votes today.
-
setVotesToday
public void setVotesToday(int votesToday) Deprecated.Sets the number of votes today.- Parameters:
votesToday- The number of votes to set for today.
-
getVotesCurrentMonth
public int getVotesCurrentMonth()Deprecated.Gets the number of votes for the current month.- Returns:
- The number of votes for the current month.
-
setVotesCurrentMonth
public void setVotesCurrentMonth(int votesCurrentMonth) Deprecated.Sets the number of votes for the current month.- Parameters:
votesCurrentMonth- The number of votes to set for the current month.
-
getVotesLastMonth
public int getVotesLastMonth()Deprecated.Gets the number of votes for the last month.- Returns:
- The number of votes for the last month.
-
setVotesLastMonth
public void setVotesLastMonth(int votesLastMonth) Deprecated.Sets the number of votes for the last month.- Parameters:
votesLastMonth- The number of votes to set for the last month.
-
getVotesWeekly
public int getVotesWeekly()Deprecated.Gets the number of votes for the week.- Returns:
- The number of votes for the week.
-
setVotesWeekly
public void setVotesWeekly(int votesWeekly) Deprecated.Sets the number of votes for the week.- Parameters:
votesWeekly- The number of votes to set for the week.
-
getBalanceToday
public double getBalanceToday()Deprecated.Gets the balance for today.- Returns:
- The balance for today.
-
setBalanceToday
public void setBalanceToday(double balanceToday) Deprecated.Sets the balance for today.- Parameters:
balanceToday- The balance to set for today.
-
getBalanceCurrentMonth
public double getBalanceCurrentMonth()Deprecated.Gets the balance for the current month.- Returns:
- The balance for the current month.
-
setBalanceCurrentMonth
public void setBalanceCurrentMonth(double balanceCurrentMonth) Deprecated.Sets the balance for the current month.- Parameters:
balanceCurrentMonth- The balance to set for the current month.
-
getBalanceLastMonth
public double getBalanceLastMonth()Deprecated.Gets the balance for the last month.- Returns:
- The balance for the last month.
-
setBalanceLastMonth
public void setBalanceLastMonth(double balanceLastMonth) Deprecated.Sets the balance for the last month.- Parameters:
balanceLastMonth- The balance to set for the last month.
-
getBalanceWeekly
public double getBalanceWeekly()Deprecated.Gets the balance for the week.- Returns:
- The balance for the week.
-
setBalanceWeekly
public void setBalanceWeekly(double balanceWeekly) Deprecated.Sets the balance for the week.- Parameters:
balanceWeekly- The balance to set for the week.
-
isNameMCVoted
public boolean isNameMCVoted()Deprecated.Checks if the player has voted on NameMC.- Returns:
- true if the player has voted, false otherwise.
-
setNameMCVoted
public void setNameMCVoted(boolean nameMCVoted) Deprecated.Sets the voting status for NameMC.- Parameters:
nameMCVoted- true if the player has voted, false otherwise.
-
isNameMCClaimed
public boolean isNameMCClaimed()Deprecated.Checks if the player has claimed their NameMC reward.- Returns:
- true if the player has claimed, false otherwise.
-
setNameMCClaimed
public void setNameMCClaimed(boolean nameMCClaimed) Deprecated.Sets the claiming status for NameMC.- Parameters:
nameMCClaimed- true if the player has claimed, false otherwise.
-
ismCITAVoted
public boolean ismCITAVoted()Deprecated.Checks if the player has voted on MCITA.- Returns:
- true if the player has voted, false otherwise.
-
setmCITAVoted
public void setmCITAVoted(boolean mCITAVoted) Deprecated.Sets the voting status for MCITA.- Parameters:
mCITAVoted- true if the player has voted, false otherwise.
-
ismCITAClaimed
public boolean ismCITAClaimed()Deprecated.Checks if the player has claimed their MCITA reward.- Returns:
- true if the player has claimed, false otherwise.
-
setmCITAClaimed
public void setmCITAClaimed(boolean mCITAClaimed) Deprecated.Sets the claiming status for MCITA.- Parameters:
mCITAClaimed- true if the player has claimed, false otherwise.
-
getLastSync
Deprecated.Gets the last sync time for this player.- Returns:
- The last sync time as a String.
-
setLastSync
Deprecated.Sets the last sync time for this player.- Parameters:
lastSync- The last sync time to set.
-
getServicesVotedToday
Deprecated.Gets the services voted today by this player.- Returns:
- An array of service names that the player has voted for today.
-
setServicesVotedToday
Deprecated.Sets the services voted today by this player.- Parameters:
servicesVotedToday- An array of service names that the player has voted for today.
-