跳到主要内容
版本:0.0.55

AutoModerationPlugin

该插件会在玩家违反以下规则时自动将其踢出:

  • 夜间行驶时不开车灯
  • 逆向行驶
  • 堵塞道路
备注

管理员不受这些规则的约束,不会看到违规标记,也不会被踢出。

启用 EnableClientMessages 后,会向玩家显示逆向行驶 / 禁止停车 / 未开灯的警示牌。
Flags 文件夹中自带的是日式警示牌,你可以用自定义警示牌替换它们。

演示

配置

extra_cfg.yml 中启用该插件

extra_cfg.yml
EnablePlugins:
- AutoModerationPlugin

参考配置

plugin_auto_moderation_cfg.yml
# Kick players that are AFK
AfkPenalty:
# Set to true to enable
Enabled: true
# Don't kick if at least one open slot of the same car model is available
IgnoreWithOpenSlots: true
# Time after the player gets kicked. A warning will be sent in chat one minute before this time
DurationMinutes: 10
# Set this to MinimumSpeed to not reset the AFK timer on chat messages / controller inputs and require players to actually drive
Behavior: "PlayerInput"
# Which models are excluded from this penalty. Example: Spectator slots
ExcludedModels: []
# Kick players with a high ping
HighPingPenalty:
# Set to true to enable
Enabled: true
# Time after the player gets kicked. A warning will be sent in chat after half this time
DurationSeconds: 20
# Players having a lower ping will not be kicked
MaximumPingMilliseconds: 500
# Penalise players driving the wrong way. AI has to enabled for this to work
WrongWayPenalty:
# Set to true to enable
Enabled: false
# Time after the player gets kicked. A warning will be sent in chat after half this time
DurationSeconds: 20
# Players driving slower than this speed will not be kicked
MinimumSpeedKph: 20
# The amount of times a player will be send to pits before being kicked
PitsBeforeKick: 2
# Penalise players driving without lights during the night
NoLightsPenalty:
# Set to true to enable
Enabled: false
# Time in which no warning or signs will be sent
IgnoreSeconds: 2
# Time after the player gets kicked. A warning will be sent in chat after half this time
DurationSeconds: 60
# Players driving slower than this speed will not be kicked
MinimumSpeedKph: 20
# The amount of times a player will be send to pits before being kicked
PitsBeforeKick: 2
# Penalise players blocking the road. AI has to be enabled for this to work
BlockingRoadPenalty:
# Set to true to enable
Enabled: false
# Time after the player gets kicked. A warning will be sent in chat after half this time
DurationSeconds: 30
# Players driving faster than this speed will not be kicked
MaximumSpeedKph: 5
# The amount of times a player will be send to pits before being kicked
PitsBeforeKick: 2