Zond: переименование параметров
This commit is contained in:
@@ -45,8 +45,8 @@ public class ClientPacketHandler extends ChannelInboundHandlerAdapter implements
|
||||
ctx.channel().attr(KNOWN_HANDLERS).set(handshakeHandlers);
|
||||
|
||||
ctx.channel().writeAndFlush(new CS_Handshake(
|
||||
Config.getInstance().getString("serverId"),
|
||||
Config.getInstance().getString("passcode")
|
||||
Config.getInstance().getString("asys.serverId"),
|
||||
Config.getInstance().getString("asys.passcode")
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
@@ -31,8 +31,8 @@ public class Connector {
|
||||
connectTicker.setTask(() -> {
|
||||
Shell.getInstance().getOutput()
|
||||
.println(String.format("Connect(%d) to ASys...", ++tryConnect));
|
||||
client.connect(Config.getInstance().getString("host"),
|
||||
Config.getInstance().getInt("port"));
|
||||
client.connect(Config.getInstance().getString("asys.host"),
|
||||
Config.getInstance().getInt("asys.port"));
|
||||
if (client.isConnected()) {
|
||||
stopReconnect();
|
||||
} else {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
serverId = SpigotServer0
|
||||
host = 127.0.0.1
|
||||
port = 8779
|
||||
passcode = testpassphrase
|
||||
asys.serverId = SpigotServer0
|
||||
asys.host = 127.0.0.1
|
||||
asys.port = 8779
|
||||
asys.passcode = testpassphrase
|
||||
bridge.port = 8710
|
||||
bridge.second = 5
|
||||
pingmonitor.delay = 5
|
||||
|
||||
Reference in New Issue
Block a user