-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample_rules.json
More file actions
175 lines (174 loc) · 6.99 KB
/
example_rules.json
File metadata and controls
175 lines (174 loc) · 6.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
// example file found at .minecraft/flowchat/rules.json
{
"antiAFK": {
"afterSeconds": 250,
"command": "/ping",
"description": "I don't want to be marked as AFK."
},
"voidFall": {
"yLevel": -20,
"command": "/tp @s 7 4 7",
"description": "I don't want to fall in the void. Lol"
},
"incoming" : [
{
//tellraw @p ["",{"score":{"name":"@p","objective":"lastdeath"}}," You sold 64 Iron Block for $69.420."]
"search": "^(\\d+) You sold (\\d+) (.*?) for \\$([\\d\\.]+)\\.$",
"replacement": "You sold $^2 $3 for $^4. ($^i)",
"valuestack": {
"ignore_diffs": [1],
"stack_values": [2,4],
"expire_after": 4,
"seperate_float_with": "."
},
"toastMe": true,
"description": "This demonstrates value stacking. ignore_diffs allows groups to be ignored, stack_values defines groups to stack, and expire_after allows values to 'unstack' after a certain amount of seconds (default 4). toastMe needs to be true or else it'll look funny."
},
{
"search": "^\\[Shop\\] (.*)$",
"replacement": "$1",
"toastMe": true,
"description": "AdminShop Toasts"
},
{
"search": "^\\*\\* (.*) \\*\\*$",
"replacement": "§b§l$1",
"toastMe": true,
"description": "WorldGuard region travel Toasts (msg starting and ending with **)"
},
{
"search": "^Now leaving the safe area\\.$",
"replacement": "pleasecancelthismessage",
"toastMe": false,
"description": "no safe area notifs"
},
{
"search": "^(To cancel this request, type /tpacancel\\.|Teleporting to .*\\.|Teleporting\\.\\.\\.|To teleport, type /tpaccept\\.|To deny this request, type /tpdeny\\.|This request will timeout after \\d+ seconds\\.)$",
"replacement": "pleasecancelthismessage",
"toastMe": false,
"description": "less TPA noise. i know how to use it."
},
{
"search": "^[\\w ]+locked with a magical spell$",
"replacement": "§4§l$0",
"toastMe": true,
"description": "locked with a magical spell toasts. i like to spamclick."
},
{
"search": "^Hey! Sorry, but you can't (.*) here\\.$",
"replacement": "§4§lYou can't $1.",
"toastMe": true,
"description": "WorldGuard protection toasts. i like to spamclick."
},
{
"search": "^\\[AreaShop\\] (\\w+) is rented by (\\S+) until (\\d+) (\\w{1,3})\\w* (\\d+) (\\d+:\\d+)\\.$",
"replacement": "§a§l$2§r§e rents this shop until §r§a$6 §a§l$3$4$5",
"toastMe": true,
"description": "AreaShop region spam. I'd rather my chatlog be clean thankyouverymuch"
},
{
"search": "^\\[AreaShop\\] (\\w+) is rented by (Alex) until (\\d+) (\\w{1,3})\\w* (\\d+) (\\d+:\\d+)\\.$",
"replacement": "§a§l$2§r§e rents this shop until §r§a$6 §a§l$3$4$5",
"toastMe": true,
"respondMsg": "/as rent $1",
"description": "I am Alex and i would like to refresh the rent."
},
{
"search": "^\\[AreaShop\\] You extended your rent of (\\S+) until (\\d+) (\\w{1,3})\\w* (\\d+) (\\d+:\\d+).*$",
"replacement": "§e§lYou extended your rent until §r§a$5 §a§l$2$3$4",
"toastMe": true,
"description": "I am Alex and i refreshed the rent."
},
{
"search": "^\\[EpicRename\\] Renamed the item successfully\\.$",
"replacement": "§a§lRenamed the item successfully.",
"toastMe": true,
"description": "EpicRename potential spam (if you rename a lot of items at once like i do)"
},
{
"search": "^You are no(w| longer) sitting!$",
"replacement": "pleasecancelthismessage",
"toastMe": false,
"description": "i know when im sitting or not. thanks for letting me know?"
},
{
"search": "^Your destination is obstructed!$",
"replacement": "§c§l$0",
"toastMe": true,
"description": "Destination obstruction chatlog spam."
},
{
"search": "^\\[Auction\\] (\\d+ seconds left).$",
"replacement": "§4§klllll §7§l[§1§lAuction§7§l]§1§l $1 §4§klllll",
"toastMe": true,
"description": "Auction time running out; don't spam chat but make it kinda noticable."
},
{
"search": "^[^<>]+(DiscordApp|Steve|Alex) has requested to teleport to you\\.$",
"replacement": "$0",
"toastMe": false,
"respondMsg": "/tpaccept",
"description": "auto TPAccept from DiscordApp, Steve, and Alex"
},
{
"search": ".*> ping$",
"replacement": "$0",
"toastMe": false,
"respondMsg": "pong!",
"description": "pingpong"
},
{
"search": "^Pong!$",
"replacement": "pleasecancelthismessage",
"toastMe": false,
"description": "pongping"
},
{
"search": "^(\\w*) increased to (\\d+)\\.$",
"replacement": "§f§l$1 increased to §a§l$2",
"toastMe": true,
"description": "MCMMO level increase"
},
{
"search": "^(\\w+) comes to you\\.$",
"replacement": "pleasecancelthismessage",
"toastMe": false,
"respondMsg": "/petsendaway",
"description": "Pets, go away."
},
{
"search": "^(\\w+) has( already)? been sent away\\.$",
"replacement": "pleasecancelthismessage",
"toastMe": false,
"description": "Stop PETstering me."
},
{
"search": "^You dont have enough exp$",
"replacement": "pleasecancelthismessage",
"toastMe": false,
"respondMsg": "/bottle get max",
"description": "/bottle get 64 must've failed, try /bottle get max"
}
],
"outgoing" : [
{
"serversearch": "^mc\\.examplemcserver\\.com:25665$",
"msgsearch": "^[^#\/].*",
"msgreplacement": "&a&l$0",
"description": "Coloured text label for every chat message. exclude CMDs starting with '/' and '#'"
},
{
"serversearch": "singleplayer",
"msgsearch": "t(est)",
"msgreplacement": "this is the b$1",
"localOnly": true,
"toastMe": true,
"description": "it's the best to type 'test' in singleplayer"
},
{
"msgsearch": "^/b$",
"msgreplacement": "/bottle get 64",
"description": "/b command does /bottle get 64"
}
]
}