Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.model.players.content;
- import org.*;
- import org.event.Events;
- import org.model.players.*;
- public class UpTime {
- public static int second, minute, hour, day;
- public void getUptime() {
- World.getWorld().submit(new Events(1000) {
- public void execute() {
- second++;
- if (second == 60) {
- second = 0;
- minute++;
- } else if (minute == 60) {
- minute = 0;
- hour++;
- } else if (hour == 24) {
- hour = 0;
- day = 1;
- }
- }
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement