hey so I fucked up my timer in my plugin so it defaults to even tho I write 200 in my config I can't seem to find a way to fix it (if you want to help let me know and if you want to fix it let me know I will pay you a little just for the fun xD)
I have made it so the timer Can set as a delay in min in the config but it just stays at the default 5
MAIN:
public static long timer = System.currentTimeMillis();
}, (long)(this.getConfig().getInt("delay") 20 60), (long)(this.getConfig().getInt("delay") 20 60));
Bukkit.getScheduler().runTaskTimer((Plugin)this, new Runnable(){
EVENTLISTENER:
long timer = Main.timer;
long next = System.currentTimeMillis() + (long)(this.plugin.getConfig().getInt("delay") * 1000);
player.sendMessage(String.valueOf(ChatColor.BLUE + "[Star] >>") + " \u00a7cThe next Star will fall in " + (5 - (int)((next - timer) / 1000) / 60) + " minute(s).");
I have made it so the timer Can set as a delay in min in the config but it just stays at the default 5
MAIN:
public static long timer = System.currentTimeMillis();
}, (long)(this.getConfig().getInt("delay") 20 60), (long)(this.getConfig().getInt("delay") 20 60));
Bukkit.getScheduler().runTaskTimer((Plugin)this, new Runnable(){
EVENTLISTENER:
long timer = Main.timer;
long next = System.currentTimeMillis() + (long)(this.plugin.getConfig().getInt("delay") * 1000);
player.sendMessage(String.valueOf(ChatColor.BLUE + "[Star] >>") + " \u00a7cThe next Star will fall in " + (5 - (int)((next - timer) / 1000) / 60) + " minute(s).");
