Example #1
0
  @Override
  public void onEnable() {
    log = Logger.getLogger("Minecraft");

    setupPermissions();

    settings = new Settings();
    database = new Database(this);
    logThread = new LogThread(this);
    getServer().getScheduler().scheduleAsyncRepeatingTask(this, logThread, 1L, 20L);

    commandHandler = new CommandHandler(this);
    selectionMap = new HashMap<String, Selection>();
    playerCache = new HashMap<String, PlayerCache>();
    cityCache = new HashMap<String, City>();
    claimMap = new HashMap<String, Claim>();

    populateCityCache();
    populateClaimsCache();
    populatePlayerCache();

    registerEvents();

    database.deleteOldInvites();

    log.info("Cityscape loaded.");
    logThread.addLogEntry("SERVER", "Cityscape Enabled.");
  }
Example #2
0
 public void addLogEntry(String header, String message) {
   logThread.addLogEntry(header, message);
 }
Example #3
0
 public void addCityChatLogEntry(String city, String player, String message) {
   logThread.addCityChatLogEntry(city, player, message);
 }