Solved Time help

Discussion in 'Plugin Help/Development/Requests' started by malikdbuseck, Dec 1, 2015.

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


    Im currently trying to write code that will keep track of time. So I need a code that says for every 60 is 1.

    so im counting ticks so right now it says int seconds = ticks/20.

    now the code I need is for every 60 in the seconds it will add 1 to minutes int.
  2. Offline

    Mrs. bwfctower

    @malikdbuseck Each seconds is 20 ticks, so the number of seconds would be the ticks times 20 instead of divided.

    Where are you putting this code? Maybe there's a better way?
  3. Offline


    just put an public int seconds; then a repeating runnable which goes off every minute then adds seconds = seconds + 1 or call it minutes if u prefer but yea X) Not sure what u need it for but thats how i done some of mine
  4. Offline


    I just used Java Date and Dateformat stuff. Way easier.
Thread Status:
Not open for further replies.

Share This Page