Enum Class CheatingOffense
- All Implemented Interfaces:
Serializable, Comparable<CheatingOffense>, Constable
定義所有可被伺服器偵測的作弊違規種類及其懲處參數。
每個列舉常數攜帶三個維度的配置:
points:本違規累計一次所增加的風險點數,供 GM 檢視摘要使用。validityDuration:單筆CheatingOffenseEntry的有效期(毫秒), 逾期後由CheatTracker的InvalidationTask自動清除。autobancount與bantype:觸發自動處置的累計閾值與動作類型 (0 = 停用、1 = 自動封禁、2 = 強制斷線)。
違規常數涵蓋超速攻擊(FASTATTACK)、怪物移動封包異常
(MOVE_MONSTERS)、道具吸取(ITEMVAC_CLIENT)、
傷害超出上限(EXCEED_DAMAGE_CAP)等。由 CheatTracker.registerOffense(CheatingOffense)
呼叫,啟用狀態可在執行期由 setEnabled(boolean) 動態切換。
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal intfinal longfinal booleanfinal voidsetEnabled(boolean enabled) final booleanshouldAutoban(int count) static CheatingOffenseReturns the enum constant of this class with the specified name.static CheatingOffense[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
吸怪
-
吸怪_飛
-
FAST_SUMMON_ATTACK
-
FASTATTACK
-
FASTATTACK2
-
FASTATTACK3
-
ATTACKMOB_MP_HACK
-
ATTACK_COUNT_HACK
-
ATTACKMOB_COUNT_HACK
-
MOVE_MONSTERS
-
FAST_HP_MP_REGEN
-
SAME_DAMAGE
-
ATTACK_WITHOUT_GETTING_HIT
-
HIGH_DAMAGE_MAGIC
-
HIGH_DAMAGE_MAGIC_2
-
HIGH_DAMAGE
-
HIGH_DAMAGE_2
-
EXCEED_DAMAGE_CAP
-
ATTACK_FARAWAY_MONSTER
-
ATTACK_FARAWAY_MONSTER_SUMMON
-
REGEN_HIGH_HP
-
REGEN_HIGH_MP
-
ITEMVAC_CLIENT
-
ITEMVAC_SERVER
-
PET_ITEMVAC_CLIENT
-
PET_ITEMVAC_SERVER
-
USING_FARAWAY_PORTAL
-
FAST_TAKE_DAMAGE
-
HIGH_AVOID
-
HIGH_JUMP
-
MISMATCHING_BULLETCOUNT
-
ETC_EXPLOSION
-
ATTACKING_WHILE_DEAD
-
USING_UNAVAILABLE_ITEM
-
FAMING_SELF
-
FAMING_UNDER_15
-
EXPLODING_NONEXISTANT
-
SUMMON_HACK
-
SUMMON_HACK_MOBS
-
ARAN_COMBO_HACK
-
HEAL_ATTACKING_UNDEAD
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getPoints
public final int getPoints() -
getValidityDuration
public final long getValidityDuration() -
shouldAutoban
public final boolean shouldAutoban(int count) -
getBanType
public final int getBanType() -
setEnabled
public final void setEnabled(boolean enabled) -
isEnabled
public final boolean isEnabled()
-