public class Cooldown
extends java.lang.Object
| Constructor and Description |
|---|
Cooldown() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
characterDailyReward(org.bukkit.entity.Player player)
Returns the daily reward cooldown from the config.
|
private static boolean |
getAndUpdateCooldownFromCache(org.bukkit.entity.Player player,
java.lang.String actionId,
java.lang.Long cooldown)
Returns a session specific cooldown from the player data.
|
private static boolean |
getAndUpdateCooldownFromCache(org.bukkit.entity.Player player,
java.lang.String actionId,
java.lang.Long cooldown,
boolean forceUpdate)
Returns a session specific cooldown from the player data.
|
private static boolean |
getAndUpdateCooldownFromConfig(org.bukkit.entity.Player player,
java.lang.String actionId,
java.lang.Long cooldown)
Returns a character specific cooldown from the config.
|
static boolean |
playerEntityInteraction(org.bukkit.entity.Player player)
Returns the entity interaction cooldown from the player data.
|
static boolean |
playerFoodConsume(org.bukkit.entity.Player player)
Returns the food consumtion cooldown from the player data.
|
static boolean |
playerProjectileShoot(org.bukkit.entity.Player player)
Returns the projectile shooting cooldown from the player data.
|
static boolean |
playerQuickSlotUse(org.bukkit.entity.Player player)
Returns the quick slot usage cooldown from the player data.
|
static boolean |
playerSkillUse(org.bukkit.entity.Player player)
Returns the skill usage cooldown from the player data.
|
static boolean |
playerWeaponSkillUse(org.bukkit.entity.Player player,
java.lang.String skillName)
Returns the weapon skill usage cooldown from the player data.
|
static boolean |
playerWeaponUse(org.bukkit.entity.Player player)
Returns the weapon usage cooldown from the player data.
|
public static boolean playerEntityInteraction(org.bukkit.entity.Player player)
player - The player who owns the player data.public static boolean playerWeaponUse(org.bukkit.entity.Player player)
player - The player who owns the player data.public static boolean playerWeaponSkillUse(org.bukkit.entity.Player player,
java.lang.String skillName)
player - The player who owns the player data.skillName - The name of the skill.public static boolean playerSkillUse(org.bukkit.entity.Player player)
player - The player who owns the player data.public static boolean playerQuickSlotUse(org.bukkit.entity.Player player)
player - The player who owns the player data.public static boolean playerFoodConsume(org.bukkit.entity.Player player)
player - The player who owns the player data.public static boolean playerProjectileShoot(org.bukkit.entity.Player player)
player - The player who owns the player data.public static boolean characterDailyReward(org.bukkit.entity.Player player)
player - The player who has selected the character.private static boolean getAndUpdateCooldownFromCache(org.bukkit.entity.Player player,
java.lang.String actionId,
java.lang.Long cooldown)
player - The player who owns the player data.actionId - The id of the action the cooldown is set for.cooldown - The timestamp, till when the cooldown lasts.private static boolean getAndUpdateCooldownFromCache(org.bukkit.entity.Player player,
java.lang.String actionId,
java.lang.Long cooldown,
boolean forceUpdate)
player - The player who owns the player data.actionId - The id of the action the cooldown is set for.cooldown - The timestamp, till when the cooldown lasts.forceUpdate - Also resets the cooldown if it is not ready.private static boolean getAndUpdateCooldownFromConfig(org.bukkit.entity.Player player,
java.lang.String actionId,
java.lang.Long cooldown)
player - The player who has selected the character.actionId - The id of the action the cooldown is set for.cooldown - The timestamp, till when the cooldown lasts.