Files
CarpetSLSAddition/src/main/java/com/github/zly2006/carpetslsaddition/SLSCarpetSettings.java
T
AxTps 3fde7e2c1b feat: 加slsBoardEnabled规则作榜单总开关(服务端规则控制客户端命令)
BoardTogglePayload同步开关状态;客户端/slsboard检查enabled,未开启则拒绝。ServerMain加轮询线程检测规则变化。
2026-10-06 19:49:26 +08:00

87 lines
3.1 KiB
Java

package com.github.zly2006.carpetslsaddition;
import carpet.api.settings.Rule;
import carpet.api.settings.RuleCategory;
public class SLSCarpetSettings {
public static final String NEED_CLIENT = "needClient"; // 需要客户端安装SLS-Addition或实现相关支持
public static final String FROM_AMS = "AMS";
public static final String SLSA = "SLS";
@Rule(categories = {SLSA, RuleCategory.SURVIVAL})
public static boolean obtainableReinforcedDeepSlate = false;
@Rule(categories = {SLSA, RuleCategory.CREATIVE})
public static boolean creativeNoInfinitePickup = false;
@Rule(categories = {SLSA, RuleCategory.OPTIMIZATION})
public static boolean noBatSpawning = false;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static boolean canUseHatCommand = false;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static boolean canUseSitCommand = false;
@Rule(categories = {SLSA}, strict = false, options = {"#none", "bot_"})
public static String botPrefix = "#none";
@Rule(categories = {SLSA})
public static long botMaxOnlineTime = -1;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static boolean creativeObeyEnchantmentRule = false;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static boolean fakePlayersNotOccupiedSleepQuota = false;
@Rule(categories = {SLSA, RuleCategory.FEATURE, NEED_CLIENT})
public static boolean emptyShulkerBoxStack = false;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static boolean playerSit = false;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static boolean endermanCanPickUpMushroom = true;
@Rule(categories = {SLSA, RuleCategory.CREATIVE})
public static boolean oldRedstoneConnectionLogic = false;
// Ported from Carpet AMS Addition
@Rule(categories = {SLSA, FROM_AMS, RuleCategory.OPTIMIZATION})
public static boolean optimizedOnDragonRespawn = false;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static boolean elytraCraftable = false;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static boolean spectatorCannotUseLeash = false;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static boolean armadilloImmediateDespawns = false;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static boolean offlineFakePlayers = false;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static int netherPortalSize = 21;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static int trialSpawnerCD = -1;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static boolean turtleLocalNesting = false;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static boolean sturdyDecoratedPot = false;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static boolean unbreakableDecoratedPot = false;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static boolean stackableVehicles = false;
@Rule(categories = {SLSA, RuleCategory.FEATURE})
public static boolean slsBoardEnabled = false;
}