Skip to content

Ad Manager

worldOneo edited this page May 31, 2020 · 3 revisions

Config

You can enable/disable the Smart Ad Manager in the config:

#config.yml
Ads:
  SmartManager: false or true
If you change the Config while the server is running execute /chatex reload to reload the Config

Functionality

Disabled:

If disabled every message will be blocked wich contains a simple url pattern.

Enabled:

If enabled the plugin uses a more complicated attempt to score a message. Each player has a score which gets increased/decreased per message a normal chatting player has a low and balanced score, a player who tries to advertises has a very high score.

Options

This options only effect the SmartManager

Ads.Threshold.Block

If the players score is bigger than the threshold the message will be blocked

#config.yml
Ads:
  Threshold:
    Block: 0.3

Ads.Threshold.ReduceThreshold

The players score will be reduced by the ReduceThreshold for each message:

#config.yml
Ads:
  Threshold:
    ReduceThreshold: 0.1

Ads.ReplaceCommas

Should commas (“,”) be replaced with “.” for the analyzing process? (This could help to detect bypass attempts like): join myserver,com:

#config.yml
Ads:
  ReplaceCommas: false

Ads.Threshold.MaxLinkLength

The message get analyzed near a “.” or “,” in range of MaxLinkLength:

#config.yml
Ads:
  Threshold:
    MaxLinkLength: 10
A higher length causes a higher score and more (false-)positives a lower length means lower scores and less detections.

Ads.SmartConfig.DomainEndings

The domain endings the SmartManager reacts with a multiplication of a score resulting in a higher score.

#config.yml
Ads:
  SmartConfig:
    DomainEndings:
      - com
      - net
      (...)

Ads.SmartConfig.Multiplier

The multiplier of the score if the domain, which the SmartManager detected, contains an ending from the domain endings.

#config.yml
Ads:
  SmartConfig:
    Multiplier: 4

Ads.SmartConfig.UnMultiplier

The multiplier of the score if the domain, which the SmartManager detected, does NOT contains an ending from the domain endings.

#config.yml
Ads:
  SmartConfig:
    UnMultiplier: 1

Tests

We tested both ad managers (SmartManager and SimpleManager) with 1893 real player messages and default settings. Here are the results:

False % False n
SmartManager 0.5% 9
SimpleManager 3.3% 64