/** Starts the local server thread (if it isn't already running). */ public void startLocalServer() { if (new File(ADDE_MCSERVL).exists()) { // Create and start the thread if there isn't already one running if (!checkLocalServer()) { if (!testLocalServer()) { LogUtil.userErrorMessage("Local servers cannot write to userpath:\n" + USER_DIRECTORY); logger.info("Local servers cannot write to userpath"); return; } thread = new AddeThread(this); thread.start(); EventBus.publish(McservEvent.STARTED); logger.debug("started mcservl? checkLocalServer={}", checkLocalServer()); } else { logger.debug("mcservl is already running"); } } else { logger.debug("invalid path='{}'", ADDE_MCSERVL); } }