public class Cooldowns extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<UUID,List<CooldownData>> |
data |
| Constructor and Description |
|---|
Cooldowns(org.bukkit.plugin.Plugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLeftTime(@NotNull org.bukkit.entity.Player player,
String action) |
boolean |
isOnCooldown(@NotNull org.bukkit.entity.Player player,
@NotNull String action) |
void |
setOnCooldown(@NotNull org.bukkit.entity.Player player,
@NotNull String action,
int timeInSeconds) |
void |
start() |
protected final Map<UUID,List<CooldownData>> data
public void start()
public void setOnCooldown(@NotNull
@NotNull org.bukkit.entity.Player player,
@NotNull
@NotNull String action,
int timeInSeconds)
public boolean isOnCooldown(@NotNull
@NotNull org.bukkit.entity.Player player,
@NotNull
@NotNull String action)
public long getLeftTime(@NotNull
@NotNull org.bukkit.entity.Player player,
String action)
Copyright © 2023. All rights reserved.