Created
May 30, 2016 02:57
-
-
Save anonymous/b829d16afa14fc9f8a7be28bdad247ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.terrocidepvp.goldenapplecontrol.handlers; | |
import java.util.List; | |
import java.util.UUID; | |
import java.util.concurrent.ConcurrentHashMap; | |
public class CoolDown { | |
private final double duration; | |
private final boolean useFormattedTime; | |
private final boolean useExpiredMsg; | |
private final List<String> consumeMsg; | |
private final List<String> coolDownMsg; | |
private final List<String> expiredMsg; | |
private final ConcurrentHashMap<UUID, Long> cooldowns = new ConcurrentHashMap<>(8, 0.9f, 1); | |
public CoolDown(final double duration, | |
final boolean useFormattedTime, | |
final boolean useExpiredMsg, | |
final List<String> consumeMsg, | |
final List<String> coolDownMsg, | |
final List<String> expiredMsg) { | |
this.duration = duration; | |
this.useFormattedTime = useFormattedTime; | |
this.useExpiredMsg = useExpiredMsg; | |
this.consumeMsg = consumeMsg; | |
this.coolDownMsg = coolDownMsg; | |
this.expiredMsg = expiredMsg; | |
} | |
public double getDuration() { | |
return duration; | |
} | |
public boolean isUseFormattedTime() { | |
return useFormattedTime; | |
} | |
public boolean isUseExpiredMsg() { | |
return useExpiredMsg; | |
} | |
public List<String> getConsumeMsg() { | |
return consumeMsg; | |
} | |
public List<String> getCooldownMsg() { | |
return coolDownMsg; | |
} | |
public List<String> getExpiredMsg() { | |
return expiredMsg; | |
} | |
public ConcurrentHashMap<UUID, Long> getCooldowns() { | |
return cooldowns; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment