Skip to content

Config Presets

blank_dvth edited this page Feb 12, 2023 · 3 revisions

MAUL Config Presets are used to add presets that can be used when adding or editing a ban. This can autofill options like the handle, reason, length, notes, and others.


Adding Presets via MAUL Config

This guide will roughly detail how to add presets to the Add Ban, and Edit Ban pages through the MAUL Enhancement Script config. Each preset will occupy one line in the textarea, and entries are semicolon-delimited. In order to leave a particular field empty/unchanged, don't put anything, and just add another semicolon (e.g. Handle;;Length). A permanent ban is denoted using a length of 0. New lines are denoted using <br>.

Add Ban

The Add Ban presets are in the following format, for each line:

Preset Name;Handle;Length;Reason;(Boolean [leave empty for false]) PA;Notes

The notes are replaced, meaning the notes field will be populated with the preset notes, and anything pre-existing in there is discarded.
To check PA, put any character in it's corresponding location. To leave it alone, leave that field blank.

For example, to have a preset with no Handle, a length of 20160, and a reason of Mass RDM with no notes:

Mass RDM;;20160;Mass RDM;;

Or to have a preset with a handle, permanent ban, checked PA, reason, and appended notes with a username added -- note that the actual value you use for the Boolean entries doesn't matter, just put anything there:

John Doe Evasion;John Doe;0;Ban Evasion;y;confirmed evasion - John Doe

Edit Ban

The Edit Ban presets are in the following format, for each line:

Preset Name;Length;Reason;(Boolean [leave empty for false]) PA;Notes;(Boolean [leave empty for false]) Add Username to End of Notes

The notes are appended, meaning the notes preset is added at the end of any existing notes, with one empty line in between them.
To check PA, put any character in it's corresponding location. To leave it alone, leave that field blank.
The script can also automatically detect your username and add it at the end of your notes if you wish. For that option, leave it empty for no (won't add), or put anything (any character) there for yes.

For example, to edit a ban duration to Permanent, and leave everything else untouched:

Make Permanent;0;;;;

Or to edit a ban to permanent, replace the Reason, check PA, and add notes to the end with your username signed:

John Doe Evasion;0;Ban Evasion;y;confirmed evasion - John Doe ~;y

Notes

  • Spaces are included in the value, do not add spaces before/after semicolonss unless you intend for those spaces to be part of the value.
  • Do NOT use semicolons in any field, they will be interpreted as a separator and result in a broken preset.
  • Do NOT leave empty lines anywhere (start, middle, or end)
  • If you can't work out what PA stands for, you probably don't need to know.

Clone this wiki locally