Class TeamManager

java.lang.Object
fr.multimc.api.spigot.games.teams.TeamManager

public class TeamManager extends Object
  • Constructor Details

    • TeamManager

      public TeamManager(@NotNull @NotNull IDataSource dataSource)
  • Method Details

    • addTeam

      public void addTeam(@NotNull @NotNull String teamCode, @NotNull @NotNull String name, @NotNull @NotNull String... players)
    • loadTeams

      public List<MmcTeam> loadTeams()
    • getTeams

      public List<MmcTeam> getTeams()
    • getTeamFromCode

      public MmcTeam getTeamFromCode(@NotNull @NotNull String teamCode)
    • getTeamFromPlayer

      public MmcTeam getTeamFromPlayer(@NotNull @NotNull MmcPlayer player)
    • pushScores

      public void pushScores(@NotNull @NotNull Map<String,Integer> localScores)
    • pushTeamScores

      public void pushTeamScores(@NotNull @NotNull Map<MmcTeam,Integer> localScores)