Package com.booksaw.betterTeams.score
Class ScoreChange
java.lang.Object
com.booksaw.betterTeams.score.ScoreChange
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.bukkit.entity.Player
static final List<ScoreChange>
final org.bukkit.entity.Player
final ScoreChange.ChangeType
-
Constructor Summary
ConstructorsConstructorDescriptionScoreChange
(ScoreChange.ChangeType type, org.bukkit.entity.Player source) ScoreChange
(ScoreChange.ChangeType type, org.bukkit.entity.Player source, org.bukkit.entity.Player target) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static boolean
isSpam
(ScoreChange.ChangeType type, org.bukkit.entity.Player source) 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 killvoid
update()
-
Field Details
-
spams
-
type
-
source
public final org.bukkit.entity.Player source -
target
public final org.bukkit.entity.Player target
-
-
Constructor Details
-
ScoreChange
-
ScoreChange
public ScoreChange(ScoreChange.ChangeType type, org.bukkit.entity.Player source, org.bukkit.entity.Player target)
-
-
Method Details
-
isSpam
-
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 changesource
- The source player of the score changetarget
- The target player of the score change- Returns:
- If the event is spam
-
hasExpired
public boolean hasExpired() -
update
public void update()
-