Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.sevador;
- import java.util.logging.Logger;
- public class Main implements Runnable {
- /**
- * The instance of the logger in this class.
- */
- private static final Logger logger = Logger.getLogger(Main.class.getCanonicalName());
- public static boolean GAME_RUNNING;
- public static void main(String[] args) {
- GAME_RUNNING = true;
- new Thread(new Main()).run();
- }
- @Override
- public void run() {
- Server.getServer().initalize();
- logger.info("[Initialization completed and server execution done.]");
- while (GAME_RUNNING) {
- //process tasks here in 600ms cycle
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement