This update gives you the chance to add some blacklisted words and regex to commands which uses text input like "
/ie rename [text]" "
/ie lore add [text]" and "
/ie lore set <page> [text]", how it works is explained on the config
A permission to bypass the censure has also been added:
Code (YAML):
itemedit.bypass.censure:
default
: op
description
: Bypass words restrictions when editing items
regenerating the config file is suggested but not necessary
you may also choose to just add
Code (YAML):
blocked:
log
:
#when text is blocked a message will be displayed on console, reporting the text and the blocked word/regex
console
: true
#when text is blocked a message will be saved on file, reporting the text and the blocked word/regex
file
: true
#Words blocked when editing items unless you have permission to bypass
#Affects commands like /ie rename, /ie lore and similar
#Any text which contains a subsequence that matches a blocked word is blocked
words
:
-
"myblockedworldexample123"
#Regex blocked when editing items unless you have permission to bypass
#Affects commands like /ie rename, /ie lore and similar
#A regex is a sequence of characters that define a search pattern
#Any text which contains a subsequence that matches a pattern is blocked
#Google 'java regex tester' or go to www.freeformatter.com/java-regex-tester.html to learn more and test new regex
regex
:
- '^
[
[email protected]
]
[s\$
]
[s\$
]$'
- '
[
[email protected]
]
[s\$
]
[s\$
]h
[o0
]
[l1
]
[e3
]
[s\$
]?'
- 'b
[
[email protected]
]
[s\$
]
[t\+
]
[
[email protected]
]rd '
- 'b
[e3
]
[
[email protected]
]
[s\$
]
[t\+
]
[i1
]
[
[email protected]
]?
[l1
]
(
[i1
]
[t\+
]y
)?'
- 'b
[e3
]
[
[email protected]
]
[s\$
]
[t\+
]
[i1
]
[l1
]
[i1
]
[t\+
]y'
- 'b
[e3
]
[s\$
]
[t\+
]
[i1
]
[
[email protected]
]
[l1
]
(
[i1
]
[t\+
]y
)?'
- 'b
[i1
]
[t\+
]ch
[s\$
]?'
- 'b
[i1
]
[t\+
]ch
[e3
]r
[s\$
]?'
- 'b
[i1
]
[t\+
]ch
[e3
]
[s\$
]'
- 'b
[i1
]
[t\+
]ch
[i1
]ng?'
- 'b
[l1
]
[o0
]wj
[o0
]b
[s\$
]?'
- 'c
[l1
]
[i1
]
[t\+
]'
- '^
(c|k|ck|q
)
[o0
]
(c|k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
[o0
]
[t\+
]
[s\$
]?'
- '
(ph|f
)
[
[email protected]
]gg
[s\$
]'
- '
(ph|f
)
[e3
]
[l1
]
[l1
]?
[
[email protected]
]
[t\+
]
[i1
]
[o0
]'
- '
(ph|f
)u
(c|k|ck|q
)'
- '
(ph|f
)u
(c|k|ck|q
)
[s\$
]?'
- 'g
[
[email protected]
]ngb
[
[email protected]
]ng
[s\$
]?'
- 'g
[
[email protected]
]ngb
[
[email protected]
]ng
[e3
]d'
- 'g
[
[email protected]
]y'
- 'h
[o0
]m?m
[o0
]'
- 'h
[o0
]rny'
- 'j
[
[email protected]
]
(c|k|ck|q
)\-?
[o0
]
(ph|f
)
(ph|f
)?'
- 'j
[e3
]rk\-?
[o0
]
(ph|f
)
(ph|f
)?'
- 'j
[i1
]
[s\$z
]
[s\$z
]?m?'
- '
[ck
]
[o0
]ndum
[s\$
]?'
- 'mast
(e|ur
)b
(8|ait|ate
)'
- 'n
[i1
]gg?
[e3
]r
[s\$
]?'
- '
[o0
]rg
[
[email protected]
]
[s\$
]
[i1
]m
[s\$
]?'
- '
[o0
]rg
[
[email protected]
]
[s\$
]m
[s\$
]?'
- 'p
[e3
]nn?
[i1
]
[s\$
]'
- 'p
[i1
]
[s\$
]
[s\$
]'
- 'p
[i1
]
[s\$
]
[s\$
]
[o0
]
(ph|f
)
(ph|f
) '
- 'p
[o0
]rn'
- 'p
[o0
]rn
[o0
]
[s\$
]?'
- 'p
[o0
]rn
[o0
]gr
[
[email protected]
]phy'
- 'pr
[i1
]ck
[s\$
]?'
- 'pu
[s\$
]
[s\$
]
[i1
]
[e3
]
[s\$
]'
- 'pu
[s\$
]
[s\$
]y
[s\$
]?'
- '
[s\$
]
[e3
]x'
- '
[s\$
]h
[i1
]
[t\+
]
[s\$
]?'
- '
[s\$
]
[l1
]u
[t\+
]
[s\$
]?'
- '
[s\$
]mu
[t\+
]
[s\$
]?'
- '
[s\$
]punk
[s\$
]?'
- '
[t\+
]w
[
[email protected]
]
[t\+
]
[s\$
]?'
on the config.yml,
and
Code (YAML):
blocked-by-censure
:
"&cYou can't use this text, it contains blocked words"
on the itemedit.yml
Disclaimer: presetted regex aren't made by me
Another small change is that if you start the plugin with CraftBukkit or 1.7 server, which are not supported, the plugin should now explain why it won't work