Compare commits
2 Commits
93f1179b38
...
c31641701d
Author | SHA1 | Date |
---|---|---|
|
c31641701d | |
|
7d85f98384 |
0
src/main/java/net/krakatoa/proxy/command/SendTestMessageCommand.java
Normal file → Executable file
0
src/main/java/net/krakatoa/proxy/command/SendTestMessageCommand.java
Normal file → Executable file
|
@ -25,6 +25,9 @@ public class ConfigHandler {
|
||||||
private String mongodbUsername;
|
private String mongodbUsername;
|
||||||
private String mongodbPassword;
|
private String mongodbPassword;
|
||||||
|
|
||||||
|
private String redisHost;
|
||||||
|
private String redisPort;
|
||||||
|
|
||||||
public void load() throws IOException {
|
public void load() throws IOException {
|
||||||
Configuration configuration = ConfigurationProvider.getProvider(YamlConfiguration.class)
|
Configuration configuration = ConfigurationProvider.getProvider(YamlConfiguration.class)
|
||||||
.load(new File("/home/kra-minecraft/kraConfigs", "kraSettings.yaml"));
|
.load(new File("/home/kra-minecraft/kraConfigs", "kraSettings.yaml"));
|
||||||
|
@ -42,5 +45,8 @@ public class ConfigHandler {
|
||||||
mongodbDatabase = configuration.getString("mongodb.database");
|
mongodbDatabase = configuration.getString("mongodb.database");
|
||||||
mongodbUsername = configuration.getString("mongodb.username");
|
mongodbUsername = configuration.getString("mongodb.username");
|
||||||
mongodbPassword = configuration.getString("mongodb.password");
|
mongodbPassword = configuration.getString("mongodb.password");
|
||||||
|
|
||||||
|
redisHost = configuration.getString("redis.host");
|
||||||
|
redisPort = configuration.getString("redis.port");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
19
src/main/java/net/krakatoa/proxy/listener/PlayerDisconnectListener.java
Normal file → Executable file
19
src/main/java/net/krakatoa/proxy/listener/PlayerDisconnectListener.java
Normal file → Executable file
|
@ -65,25 +65,6 @@ public class PlayerDisconnectListener implements Listener {
|
||||||
if (!map.isEmpty()) {
|
if (!map.isEmpty()) {
|
||||||
map.delete();
|
map.delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*Long res = ProxySystem.getInstance().getRedisManager().getRedisKeyCommands()
|
|
||||||
.del("player:" + proxiedPlayer.getUniqueId().toString());
|
|
||||||
|
|
||||||
ProxySystem.getInstance().getLogger().info("val: " + res);
|
|
||||||
|
|
||||||
//String uuid = ProxySystem.getInstance().getFormatter()
|
|
||||||
// .formatUuid(proxiedPlayer.getUniqueId().toString());
|
|
||||||
|
|
||||||
/*
|
|
||||||
ProxySystem.getInstance().getPlayerRegistrationProcess()
|
|
||||||
.deleteOne(Filters.eq("uuid", uuid),
|
|
||||||
(deleteResult, throwable) -> {
|
|
||||||
|
|
||||||
System.out.println("delete " + deleteResult.getDeletedCount());
|
|
||||||
}); */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
0
src/main/java/net/krakatoa/proxy/listener/SocketClientMessageListener.java
Normal file → Executable file
0
src/main/java/net/krakatoa/proxy/listener/SocketClientMessageListener.java
Normal file → Executable file
0
target/classes/net/krakatoa/proxy/listener/PlayerDisconnectListener.class
Normal file → Executable file
0
target/classes/net/krakatoa/proxy/listener/PlayerDisconnectListener.class
Normal file → Executable file
0
target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
Normal file → Executable file
0
target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
Normal file → Executable file
0
target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
Normal file → Executable file
0
target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
Normal file → Executable file
0
target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
Normal file → Executable file
0
target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
Normal file → Executable file
Loading…
Reference in New Issue