adding ingame chat support from sourcemod through java to python
This commit is contained in:
@@ -220,7 +220,7 @@ public class Datahandler {
|
||||
hlStatsMessages.put(str, hlStatsMessages.size());
|
||||
}
|
||||
}
|
||||
int capacity = 600;
|
||||
int capacity = 50;
|
||||
hlStatsMessages.keySet().forEach(str -> {
|
||||
if (!str.startsWith("!") && MessageResponseHandler.getStr().values().size() < capacity) {
|
||||
String orElse = strCacheLocal.values().parallelStream().filter(e -> e.equals(str)).findAny().orElse(null);
|
||||
@@ -790,6 +790,18 @@ public class Datahandler {
|
||||
return stringCache.values().size() - (stringCache.values().size() / 10);
|
||||
}
|
||||
|
||||
public void update_autismo_mysql() {
|
||||
String update_string = DataMapper.check_autismo_mysql();
|
||||
if (!update_string.isEmpty()) {
|
||||
try {
|
||||
String getResponseMsg = getResponseMsg(update_string);
|
||||
DataMapper.update_autismo_mysql(getResponseMsg, update_string);
|
||||
} catch (CustomError ex) {
|
||||
Logger.getLogger(Datahandler.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static class AnnotationCollector<T> implements Consumer<T> {
|
||||
|
||||
private static int i = 0;
|
||||
|
||||
Reference in New Issue
Block a user