Class ScoreManager
java.lang.Object
fr.multimc.api.spigot.games.score.ScoreManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a score to a teamintGet the score of a teamvoidPush the scores to the databasevoidremoveScore(MmcTeam team) Remove a score to a teamvoidAdd a new score to a teamvoidupdateScore(MmcTeam team, int newScore) Set a new score to a team
-
Constructor Details
-
ScoreManager
Constructor of ScoreManager object- Parameters:
teamManager- TeamManager object
-
-
Method Details
-
updateScore
Set a new score to a team- Parameters:
team- MmcTeam objectnewScore- The new score to set
-
addScore
Add a score to a team- Parameters:
team- MmcTeam objectscoreAddition- The score to add
-
setScore
Add a new score to a team- Parameters:
team- MmcTeam objectscore- The score to set
-
removeScore
Remove a score to a team- Parameters:
team- MmcTeam object
-
pushScore
public void pushScore()Push the scores to the database -
getScores
Get the score of a team- Parameters:
team- MmcTeam object- Returns:
- The score of the team
-