Solved Mineplex styled timeleft formatting?

Discussion in 'Plugin Development' started by IconByte, Jun 10, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    IconByte

    Hello. I need help with timeleft as a double, for example Time left: 5.9, 4.2, 2.7, 1.0 and after that it displays seconds already.. Any hints about the double numbering, for example: 5.9? How I would get that number 9?
    I don't know how to explain that. :/
     
  2. Offline

    Konato_K

    @IconByte Use a float/double and format it?
     
  3. Offline

    IconByte

    @Konato_K Oh, I forgot to say that I am using integers as countdown numbers. And I remove 1 every second from the total timeleft. So basically my question is:
    how to convert that int to the float/double?
     
  4. Offline

    TheDiamond06

    @IconByte Impossible if you are doing it by the second, whatever task you are doing it to count down I would do in ticks under 20 having it be every 2 ticks it displays the time left. Change the integer to a double and remove .1 each time if you are having it every 2 ticks.
     
    IconByte likes this.
Thread Status:
Not open for further replies.

Share This Page