add a config for it

This commit is contained in:
ChomeNS
2024-10-20 14:08:55 +07:00
parent 096a013ebd
commit ee2fdcd8bd
3 changed files with 4 additions and 1 deletions

View File

@@ -163,7 +163,7 @@ public class Bot {
// this replicates the minecraft behavior of not resolving SRV records.
// some servers check for this, so that's why i have it here
session.setFlag(BuiltinFlags.ATTEMPT_SRV_RESOLVE, false);
session.setFlag(BuiltinFlags.ATTEMPT_SRV_RESOLVE, options.resolveSRV);
session.addListener(new SessionAdapter() {
// fard

View File

@@ -171,6 +171,7 @@ public class Configuration {
public boolean useCore = true;
public boolean useChat = false;
public boolean coreCommandSpy = false;
public boolean resolveSRV = true;
public int reconnectDelay = 2000;
public boolean removeNamespaces = false;
public int chatQueueDelay = 125;