Class ServerConstants
java.lang.Object
constants.ServerConstants
伺服器層級的全域開關、版本識別碼與可調參數的中央常數類別。
本類別以靜態欄位集中管理 TWMS v149 的營運設定,涵蓋:
- 版本識別:
MAPLE_VERSION(149)與MAPLE_PATCH("1"), 由handling.MapleServerHandler在握手時驗證,不符合者拒絕連線。 - 連線與加密:
Use_Fixed_IV、CUSTOM_ENCRYPTION、Gateway_IP。 - MTS 玩家拍賣系統參數:
MIN_MTS、MTS_BASE、MTS_TAX、MTS_MESO。 - GM 階級定義:列舉
PlayerGMRank(普通玩家 0 → 神 100),決定!/@指令前綴與許可等級。 - 行為開關:
AUTO_REGISTER、isShutdown、DisableBlockSkills、各log_*稽核旗標等。 - 傷害上限(
damagecap)、監獄地圖(JAIL)、地獄頻道(EnableHellCh/HellCh)。
loadSetting() 由 ServerProperties 在啟動時呼叫,
將 settings.ini 中的鍵值覆寫到對應靜態欄位,
使新增可調參數時必須同步修改 settings.ini 與本類別。
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic int[]static booleanstatic intstatic booleanstatic intstatic booleanstatic booleanstatic longstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic final byte[]static Stringstatic booleanstatic intstatic int[]static int[]static booleanstatic booleanstatic intstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic final Stringstatic final shortstatic int[]static final intstatic booleanstatic intstatic intstatic booleanstatic intstatic final intstatic booleanstatic final intstatic intstatic Stringstatic final intstatic booleanstatic booleanstatic booleanstatic intstatic boolean -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
Gateway_IP
public static final byte[] Gateway_IP -
MAPLE_VERSION
public static final short MAPLE_VERSION- See Also:
-
MAPLE_PATCH
- See Also:
-
Use_Fixed_IV
public static boolean Use_Fixed_IV -
Use_Localhost
public static boolean Use_Localhost -
CUSTOM_ENCRYPTION
public static boolean CUSTOM_ENCRYPTION -
MIN_MTS
public static final int MIN_MTS- See Also:
-
MTS_BASE
public static final int MTS_BASE- See Also:
-
MTS_TAX
public static final int MTS_TAX- See Also:
-
MTS_MESO
public static final int MTS_MESO- See Also:
-
AUTO_REGISTER
public static boolean AUTO_REGISTER -
Can_GMItems
public static boolean Can_GMItems -
isShutdown
public static boolean isShutdown -
Disable_Shop
public static boolean Disable_Shop -
isAdminOnly
public static boolean isAdminOnly -
EnableHellCh
public static boolean EnableHellCh -
HellCh
public static int[] HellCh -
MTS_FM
public static boolean MTS_FM -
MTS_NpcId
public static int MTS_NpcId -
MTS_NpcScript
-
weekcash
public static boolean weekcash -
weekacash
public static int weekacash -
mobdropMP
public static boolean mobdropMP -
mobdropautomp
public static boolean mobdropautomp -
mobdropprop
public static int mobdropprop -
mobdropminmp
public static int mobdropminmp -
mobdropmaxmp
public static int mobdropmaxmp -
leveljobshow
public static boolean leveljobshow -
log_chalkboard
public static boolean log_chalkboard -
log_mshop
public static boolean log_mshop -
log_merchant
public static boolean log_merchant -
log_csbuy
public static boolean log_csbuy -
log_scroll
public static boolean log_scroll -
log_mega
public static boolean log_mega -
log_chat
public static boolean log_chat -
chatlog_enabled
public static boolean chatlog_enabled -
chatlog_retention_days
public static int chatlog_retention_days -
log_trade
public static boolean log_trade -
log_drop
public static boolean log_drop -
log_pickup
public static boolean log_pickup -
log_cube
public static boolean log_cube -
log_seal
public static boolean log_seal -
log_dc
public static boolean log_dc -
log_delchr
public static boolean log_delchr -
log_kite
public static boolean log_kite -
log_storage
public static boolean log_storage -
CashShopGiftsCount
public static int CashShopGiftsCount -
GiftsMaxMessage
-
LOG_TRACE_GAINMESO
public static boolean LOG_TRACE_GAINMESO -
LOG_TRACE_INVENTORY
public static boolean LOG_TRACE_INVENTORY -
hot_sell
public static int[] hot_sell -
DisableMapCC
public static boolean DisableMapCC -
MapNotCC
public static int[] MapNotCC -
DisableBlockSkills
public static boolean DisableBlockSkills -
blockedSkills
public static int[] blockedSkills -
EnableHM
public static boolean EnableHM -
createMapInFM
public static boolean createMapInFM -
rebornexp
public static boolean rebornexp -
JAIL
public static int JAIL -
damagecap
public static long damagecap -
LOG_UNHandle_PACKETS
public static boolean LOG_UNHandle_PACKETS -
LOG_Handle_PACKETS
public static boolean LOG_Handle_PACKETS -
loginMapInFM
public static boolean loginMapInFM -
GuiApiEnabled
public static boolean GuiApiEnabled -
GuiApiPort
public static int GuiApiPort
-
-
Constructor Details
-
ServerConstants
public ServerConstants()
-
-
Method Details
-
Class_Bonus_EXP
public static final byte Class_Bonus_EXP(int job) -
loadSetting
public static void loadSetting()
-