AntiEZ - Stop your players from being toxic!

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

OOF

New Member
Aug 15, 2019
0
0
0
RHV2xR0.png
dependencies-png.380099

You need this version of Skript or higher in order for this script to work: https://github.com/SkriptLang/Skript/releases/tag/dev37c

You also need this addon for it to work: (place it in the scripts file) https://www.spigotmc.org/resources/json-sk.8851/



If you need help or support join my discord server for help.
 
You can improve your code alot by using this example:

Code:
#! YAML EXAMPLE TO USE THE CODE BELOW: (plugins/AntiEZ/config.yml)
#!
#! <CODE>
#!
#! messages:
#!   - "msg 1"
#!   - "msg 2"
#!   - "msg 3"
#!
#! </CODE>
#!

options:
    blockedWords: "Ez" or "GG EZ" or "EZ GG" or "E Z" or "easy" or "EZZY" #! You better use regex to block such stuff like (regex example): "\B(e+z+|e+(a|)+(s|z)+y+)\B"

on load:
    set {AntiEz::config::messages::*} to yml list "messages" of file "plugins/AntiEZ/config.yml" #! SkUtilities

on chat:
    #! You can use ur blockedWords option or use regex (better)
    regex replace all "\B(e+z+|e+(a|)+(s|z)+y+)\B" with (random text out of {AntiEz::config::messages::*}) in message

EDIT:
You can use https://regex101.com/ to test your regex examples
 
Last edited: