Class ScoreChange

java.lang.Object
com.booksaw.betterTeams.score.ScoreChange

public class ScoreChange extends Object
  • Field Details

    • spams

      public static final List<ScoreChange> spams
    • type

      public final ScoreChange.ChangeType type
    • source

      public final org.bukkit.entity.Player source
    • target

      public final org.bukkit.entity.Player target
  • Constructor Details

    • ScoreChange

      public ScoreChange(ScoreChange.ChangeType type, org.bukkit.entity.Player source)
    • ScoreChange

      public ScoreChange(ScoreChange.ChangeType type, org.bukkit.entity.Player source, org.bukkit.entity.Player target)
  • Method Details

    • isSpam

      public static boolean isSpam(ScoreChange.ChangeType type, org.bukkit.entity.Player source)
    • isSpam

      public static boolean isSpam(ScoreChange.ChangeType type, org.bukkit.entity.Player source, org.bukkit.entity.Player target)
      Used to check if an action is a spam action, this will increase the timer if it is Returns false if it is not a spam kill
      Parameters:
      type - The type of score change
      source - The source player of the score change
      target - The target player of the score change
      Returns:
      If the event is spam
    • hasExpired

      public boolean hasExpired()
    • update

      public void update()