master
Areia 4 years ago
parent ff5fec05d4
commit 51e6b9c373

@ -3,7 +3,9 @@ Add, remove, enable, and disable gags easily
# General Overview # General Overview
This plugin is intended to simplify the process of handling simple gag triggers. Say you're headed on an epic run. You don't really want to see messages about experience gained or gold shared. Say you're pupping/leveling in a well-known zone and don't want to see all the damage messages the mobs spam you with. This plugin is intended to simplify the process of handling simple gag triggers. Say you're headed on an epic run. You don't really want to see messages about experience gained or gold shared. Say you're pupping/leveling in a well-known zone and don't want to see all the damage messages the mobs spam you with.
With this plugin, you can easily create groups of related messages and turn them on or off without having to open and search through your triggers menu. With this plugin, you can easily create groups of related messages and turn them on or off without having to open and search through your triggers menu.
By default, you enter regular expressions that match the lines you want to gag. However, there is also an option to simplify that portion, allowing you to enter plain text with simple * wildcards if you're not comfortable using regex. By default, you enter regular expressions that match the lines you want to gag. However, there is also an option to simplify that portion, allowing you to enter plain text with simple * wildcards if you're not comfortable using regex.
# Commands # Commands
@ -15,34 +17,34 @@ this is what you want before adding the 'confirm' argument.
# amg count # amg count
Displays a brief count of the number of enabled messages and groups. Displays a brief count of the number of enabled messages and groups.
# amg show [<group name> [<message name>]] # amg show [&lt;group name&gt; [&lt;message name&gt;]]
Displays info on the requested group or message. 'Amg show' on its own gives a Displays info on the requested group or message. 'Amg show' on its own gives a
list of all groups along with an indication of whether each group is enabled or list of all groups along with an indication of whether each group is enabled or
disabled currently. 'Amg show <group>' will display all messages within that disabled currently. 'Amg show &lt;group&gt;' will display all messages within that
group, along with an indication of its enabled status and a peek at its match group, along with an indication of its enabled status and a peek at its match
string. To see a message's full regex, enter 'amg show <group> <message>'. string. To see a message's full regex, enter 'amg show &lt;group&gt; &lt;message&gt;'.
# amg <enable|disable> [<group name> [<message name>]] # amg &lt;enable|disable&gt; [&lt;group name&gt; [&lt;message name&gt;]]
Enables or disables the given group or message. 'amg <en|dis>able' on its own Enables or disables the given group or message. 'amg &lt;en|dis&gt;able' on its own
will enable/disable all groups. To enable/disable a single group, use will enable/disable all groups. To enable/disable a single group, use
'amg <en|dis>able <group>', and to enable/disable only a single particular 'amg &lt;en|dis&gt;able &lt;group&gt;', and to enable/disable only a single particular
message, enter 'amg <en|dis>able <group> <message>'. message, enter 'amg &lt;en|dis&gt;able &lt;group&gt; &lt;message&gt;'.
# amg add <group name> <message name> <match string> # amg add &lt;group name&gt; &lt;message name&gt; &lt;match string&gt;
Adds a new message to be gagged. All arguments are required. The message will Adds a new message to be gagged. All arguments are required. The message will
be given the name <message name>, added to the group called <group name> (which be given the name &lt;message name&gt;, added to the group called &lt;group name&gt; (which
will be created if it does not exist), and will gag the line described by will be created if it does not exist), and will gag the line described by
<match string>. The match string should be a regular expression. Group and &lt;match string&gt;. The match string should be a regular expression. Group and
message names may contain only letters, numbers, and underscores. message names may contain only letters, numbers, and underscores.
# amg edit <group name> <message name> <name|group|match> <value> # amg edit &lt;group name&gt; &lt;message name&gt; &lt;name|group|match&gt; &lt;value&gt;
Changes the given field of the nominated message. <Value> is the value you wish Changes the given field of the nominated message. &lt;Value&gt; is the value you wish
to assign to the field. For example, to change the name of the sanc message in to assign to the field. For example, to change the name of the sanc message in
the spellup group to 'sanctuary', enter 'amg edit spellup sanc name sanctuary'. the spellup group to 'sanctuary', enter 'amg edit spellup sanc name sanctuary'.
Assigning a group name that does not already exist will create a new group; Assigning a group name that does not already exist will create a new group;
likewise, if a group is left empty by this operation, it will be removed. likewise, if a group is left empty by this operation, it will be removed.
# amg remove <group name> [<message name>] [confirm] # amg remove &lt;group name&gt; [&lt;message name&gt;] [confirm]
Removes the given group or message. If only a group name is given, all messages Removes the given group or message. If only a group name is given, all messages
in that group will be deleted. Note that this cannot be reversed, so be certain in that group will be deleted. Note that this cannot be reversed, so be certain
you have the correct group and message names before adding the 'confirm' you have the correct group and message names before adding the 'confirm'

Loading…
Cancel
Save