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:
@@ -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.",
|
||||
"使用替代登录逻辑以跳过同步。"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user