9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-26 02:19:19 +00:00

AlternativeJoin to skip sync in syncAfterConfigurationChange

This commit is contained in:
Taiyou06
2025-05-08 11:17:05 +02:00
parent 56cc95b9ee
commit f0ff93a1ce
2 changed files with 106 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package org.dreeam.leaf.config.modules.network;
import org.dreeam.leaf.config.ConfigModules;
import org.dreeam.leaf.config.EnumConfigCategory;
public class AlternativeJoin extends ConfigModules {
public String getBasePath() {
return EnumConfigCategory.NETWORK.getBaseKeyName();
}
public static boolean AlternativeJoin = true;
@Override
public void onLoaded() {
AlternativeJoin = config.getBoolean(getBasePath() + ".alternative-join", AlternativeJoin, config.pickStringRegionBased(
"Use alternative login logic to skip synchronization.",
"使用替代登录逻辑以跳过同步。"));
}
}