Update ExternalSubServer.java

This commit is contained in:
ME1312 2020-02-16 20:43:52 -05:00
parent 4ba0489d9d
commit d2c7512257
No known key found for this signature in database
GPG Key ID: FEFFE2F698E88FA8

View File

@ -86,10 +86,15 @@ public class ExternalSubServer extends SubServerContainer {
} else return false;
}
void started(UUID address) {
if (!running) {
started = false;
running = true;
logger.start();
if (address != null && address != logger.getExternalAddress()) host.queue(new PacketExEditServer(this, PacketExEditServer.UpdateType.SET_LOGGING_ADDRESS, logger.getExternalAddress().toString()));
if (address != null) {
if (address != logger.getExternalAddress()) host.queue(new PacketExEditServer(this, PacketExEditServer.UpdateType.SET_LOGGING_ADDRESS, logger.getExternalAddress().toString()));
host.plugin.getPluginManager().callEvent(new SubStartEvent(null, this));
}
}
}
private void falsestart() {
Logger.get("SubServers").info("Couldn't start " + getName() + " - See the " + host.getName() + " console for more details");