package ethos.model.content;
import java.util.concurrent.TimeUnit;
import ethos.Config;
import ethos.model.players.Player;
/**
* @author Aaron Whittle
* @date Sep 22th 2019
*/
public class DoubleExpScroll {
public static long EXPERIENCE_TIMER = 0;
public static void OpenScroll (Player player) {
EXPERIENCE_TIMER = TimeUnit.HOURS.toMillis(1) / 600;
player.DOUBLE_SCROLL = true;
}
public void EndExp (Player player) {
if (DoubleExpScroll.EXPERIENCE_TIMER > 0) {
DoubleExpScroll.EXPERIENCE_TIMER--;
if (DoubleExpScroll.EXPERIENCE_TIMER == 1) {
player.sendMessage("@
[email protected] are no longer on double experience.");
player.DOUBLE_SCROLL = false;
}
}
}
}