that is what shows up when i use Code: int estTime = (int) ((System.currentTimeMillis() - startTime) / 1000); int timeleft = (20 - estTime); Commands.SendMessage(p, "please wait " + timeleft + " seconds before using again!"); How can i fix this
You may use TimeUnit enum that does it for you like TimeUnit.MILLS.toSeconds(Long parammills) Also follow java nmaming conventions :- )