mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-29 05:36:13 +01:00
Update ExternalSubServer.java
This commit is contained in:
parent
4ba0489d9d
commit
d2c7512257
@ -86,10 +86,15 @@ public class ExternalSubServer extends SubServerContainer {
|
|||||||
} else return false;
|
} else return false;
|
||||||
}
|
}
|
||||||
void started(UUID address) {
|
void started(UUID address) {
|
||||||
|
if (!running) {
|
||||||
started = false;
|
started = false;
|
||||||
running = true;
|
running = true;
|
||||||
logger.start();
|
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() {
|
private void falsestart() {
|
||||||
Logger.get("SubServers").info("Couldn't start " + getName() + " - See the " + host.getName() + " console for more details");
|
Logger.get("SubServers").info("Couldn't start " + getName() + " - See the " + host.getName() + " console for more details");
|
||||||
|
Loading…
Reference in New Issue
Block a user