Updated to latest Protocol Version
This commit is contained in:
@@ -29,8 +29,8 @@ public final class DatabaseINSServer extends ProtocolINSServer {
|
||||
* @throws IOException If the base server initialization fails.
|
||||
* @throws CertificateException If required certificate files are missing or invalid.
|
||||
*/
|
||||
public DatabaseINSServer(String insInfoSite, String insFrontendSite, int tcpPort, int udpPort, String jdbcUrl, String jdbcUser, String jdbcPassword) throws Exception {
|
||||
super(insInfoSite, insFrontendSite, tcpPort, udpPort);
|
||||
public DatabaseINSServer(String insInfoSite, String insFrontendSite, String jdbcUrl, String jdbcUser, String jdbcPassword) throws Exception {
|
||||
super(insInfoSite, insFrontendSite);
|
||||
|
||||
this.jdbcUrl = jdbcUrl;
|
||||
this.jdbcUser = jdbcUser;
|
||||
|
||||
@@ -31,7 +31,11 @@ public class Main {
|
||||
values = new ProtocolValues();
|
||||
values.packetHandler = new PacketHandler();
|
||||
values.eventManager = new EventManager();
|
||||
values.eventManager.registerListener(Listener.class);
|
||||
values.eventManager.registerListener(new Listener());
|
||||
|
||||
if (!new File("config.properties").exists()) {
|
||||
new File("config.properties").createNewFile();
|
||||
}
|
||||
|
||||
ConfigurationManager config = new ConfigurationManager(new File("config.properties"));
|
||||
config.loadProperties();
|
||||
@@ -84,9 +88,9 @@ public class Main {
|
||||
String info = config.getString("ins.info");
|
||||
String frontend = config.getString("ins.frontend");
|
||||
|
||||
DatabaseINSServer server = new DatabaseINSServer(info, frontend, tcpPort, udpPort, url, user, password);
|
||||
DatabaseINSServer server = new DatabaseINSServer(info, frontend, url, user, password);
|
||||
protocolBridge = new ProtocolBridge(server, values, ProtocolVersion.PV_1_0_0_BETA, new File("logs"));
|
||||
server.getNetwork().start();
|
||||
server.start(tcpPort);
|
||||
|
||||
commandManager = new CommandManager(values.eventManager);
|
||||
commandManager.registerCommand(StopCommand.class);
|
||||
|
||||
Reference in New Issue
Block a user