🆙 Update Links in Readme and CF Fix for discconects !
This commit is contained in:
parent
06efcfddeb
commit
9d391865af
@ -140,6 +140,7 @@ public final class Emulator {
|
||||
Emulator.gameEnvironment.load();
|
||||
Emulator.gameServer.initializePipeline();
|
||||
Emulator.gameServer.connect();
|
||||
Emulator.getGameServer().getGameClientManager().CFKeepAlive();
|
||||
Emulator.rconServer.initializePipeline();
|
||||
Emulator.rconServer.connect();
|
||||
Emulator.badgeImager = new BadgeImager();
|
||||
|
@ -107,6 +107,12 @@ public class GameClient {
|
||||
}
|
||||
}
|
||||
|
||||
public void sendKeepAlive() {
|
||||
if (this.channel != null && this.channel.isOpen()) {
|
||||
this.channel.writeAndFlush(new ServerMessage(-1));
|
||||
}
|
||||
}
|
||||
|
||||
public void dispose() {
|
||||
try {
|
||||
this.channel.close();
|
||||
|
@ -1,5 +1,6 @@
|
||||
package com.eu.habbo.habbohotel.gameclients;
|
||||
|
||||
import com.eu.habbo.Emulator;
|
||||
import com.eu.habbo.habbohotel.users.Habbo;
|
||||
import com.eu.habbo.messages.ServerMessage;
|
||||
import com.eu.habbo.messages.outgoing.MessageComposer;
|
||||
@ -162,4 +163,15 @@ public class GameClientManager {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void CFKeepAlive() {
|
||||
Emulator.getThreading().run(() -> {
|
||||
for (GameClient client : this.clients.values()) {
|
||||
if (client != null && client.getChannel().isActive()) {
|
||||
client.sendKeepAlive();
|
||||
}
|
||||
}
|
||||
CFKeepAlive();
|
||||
}, 30000);
|
||||
}
|
||||
}
|
Binary file not shown.
@ -7,7 +7,7 @@ and is developed for free by talented developers and is compatible with the foll
|
||||
| ------------- | ------------- |
|
||||
|
||||
## Download ##
|
||||
[Latest compiled version](https://)
|
||||
[Latest compiled version](https://git.camwijs.eu/duckietm/Arcturus-Morningstar-Extended/src/branch/main/Latest_Compiled_Version)
|
||||
|
||||
## Connection ##
|
||||
Use the Websocket plugin!
|
||||
|
Loading…
x
Reference in New Issue
Block a user