public interface Match
Modifier and Type | Method and Description |
---|---|
Arena |
getArena()
|
int |
getBet()
The bet amount for this
Match . |
java.util.List<org.bukkit.inventory.ItemStack> |
getItems(org.bukkit.entity.Player player)
UnmodifiableList of ItemStacks the player has bet for this
Match . |
Kit |
getKit()
|
java.util.Set<org.bukkit.entity.Player> |
getPlayers()
UnmodifiableSet of alive players in this
Match . |
long |
getStart()
The start of this match
Match milliseconds. |
java.util.Set<org.bukkit.entity.Player> |
getStartingPlayers()
UnmodifiableSet of players who started this
Match . |
boolean |
isFinished()
Whether or not this
Match is finished. |
long getStart()
Match
milliseconds.
Note: System.currentTimeMillis()
subtracted by the result of this method will give the duration of the current Match
in milliseconds.@Nullable Kit getKit()
@NotNull java.util.List<org.bukkit.inventory.ItemStack> getItems(@NotNull org.bukkit.entity.Player player)
Match
.player
- Player
to get the list of bet items.Match
.int getBet()
Match
.Match
or 0 if no bet was specified.boolean isFinished()
Match
is finished.Match
has finished or false otherwise.@NotNull java.util.Set<org.bukkit.entity.Player> getPlayers()
Match
.Match
.@NotNull java.util.Set<org.bukkit.entity.Player> getStartingPlayers()
Match
.
Note: This set includes players who are offline. If you keep a reference
to this match, all the player objects of those who started this match will
not be garbage-collected.Match
.