Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This Skript Hooks In Well With FrostEssentials, You Should Think About Downloading It Here >> ( Coming Soon )#
- options:
- prefix: &7[&bFrostCHAT&7]
- version: &41.2.1 Test-Build-InDev &7( &9• &4Possibly Unstable Build &9• &7)
- AmountOfMaxWarns: 3
- AdminCmdPerm: frostchat.admin
- BypassPermission: antiadv.bypass
- CancelMessage: true
- MainCmdAliases: /frostaa /aa /antiad
- DontAdvertiseHereMsg: &fPlease do not advertise here. All online staff have been notified.
- KickOnWarnLimitReach: true
- Over3WarnsCmd1: ban %arg 1% Advertising more than 3 times.
- Over3WarnsCmd2: broadcast %arg 1% has just been banned by FrostCHATANTI ADVERTISMENT for advertising more than 3 times!
- StaffWarnMsg: {@prefix} &7&o%player%&f is advertising! %message%
- list: ".com" or ".net" or ".co" or ".us" or ".uk" or ".ws" or ".tk" or ".org" or ".to" or "dot." or "dot," or "(dot)" or ".pw" or "dot" or ".it" or ".tech" or ".edu" or "DOT" or " , " or ".de" or ".tl" or ".nl" or ".be" or ".me" or ".info" or ".ly" or ".onion" or ".bit" or ".pl" or ".gl" or ".tv" or ".gs" or ".myserver" or ".club" or ".space" or ".design" or ".rent" or ".bid" or ".trade" or ".webcam" or ".press" or ".io" or ".ca" or ".college" or ".host" or ".es" or ".yoga" or ".financial" or ".flights" or ".guitars" or ".xyz" or ".dj" or ".is" or ".hub" or ".server" or ".webcam" or ".ninja" or ".financial" or ".ca" or ".eu" or ".esy"
- WarnThePlayer: true
- StaffWarnMsg: true
- on chat:
- if message contains {@list}:
- if player doesn't have permission "{@BypassPermission}":
- if {@WarnThePlayer} is true:
- send "{@prefix} {@DontAdvertiseHereMsg}"
- else:
- add 1 to {frostantiadv.advs.%player%}
- loop all players:
- if loop-player has permission "{@AdminCmdPerm}":
- if {@StaffWarnMsg} is true:
- send "{@prefix} {@StaffWarnMsg}" to loop-player
- command /frostaa [<offlineplayer>] [<text>] [<text>]:
- aliases: {@MainCmdAliases}
- permission: {@AdminCmdPerm}
- trigger:
- if arg 1 is not set:
- send "&7&m--------------------------"
- send " {@prefix} &b&lCommands&8:"
- send "&f"
- send "&8- &7/FrostAA Help"
- send "&8- &7/FrostAA:"
- send "&8- &7/FrostAAR Reset"
- send "&8- &7/FrostAA Set"
- send "&8- &7/FrostChat Help"
- send "&8- &7/FrostChat Version"
- send "&8- &7/FrostChat Reload"
- send "&8- &7/FrostChat Confirm"
- send "&8- &7/FrostChat Clear"
- send "&8- &7/FrostChat Mute"
- send "&8- &7/FrostChat Unmute"
- send "&8- &7More commands Coming Soon!"
- send "&7"
- send "&7&m--------------------------"
- stop
- if arg 1 is "Stats" or "Warns":
- if arg 2 is set:
- send "&8&m--------------------------"
- send "&lStats:"
- send "&7"
- send "&eUsername &8- &7%arg 2%"
- set {_a} to "%{frostantiadv.advs.%arg 2%}%"
- if {_a} contains "<none>":
- set {_a} to 0
- send "&eWarns &8- &7%{_a}%"
- send "&7"
- send "&8&m--------------------------"
- stop
- else:
- send "{@prefix} &ePlease enter a valid username."
- else:
- if arg 1 is set:
- if arg 2 is not set:
- send "&8&m--------------------------"
- send " &4Information:"
- send "&7"
- send "&fUsername: &7&o%arg 1%"
- send "&fWarnings: &7&o%{antiadv.advs.%arg 1%}%"
- send "&fPlayer UUID: &7&o%uuid of player%"
- send "&fMax warns before Action: &7&o{@AmountOfMaxWarns}"
- send "&7"
- send "&8&m--------------------------"
- stop
- else:
- if arg 1 is "reset":
- if arg 2 is set:
- set {frostantiadv.advs.%arg 2%} to 0
- send "{@prefix} &6%arg 2%'s &earguments have been reset."
- else:
- send "{@prefix} &cPlease specify a player."
- if arg 2 is "set":
- set {frostantiadv.advs.%arg 1%} to arg 2
- send "{@prefix} &7&o%arg 1%'s &fadvertisement warnings have been set to %arg 2%."
- stop
- if arg 2 is "act" or "action":
- if arg 3 is set:
- execute player command "%arg 3%"
- if arg 3 is not set:
- send "{@prefix} &fPlease add a command after the players name to execute an action on them. To have it act on the player, use %player%."
- if {frostantiadv.advs.%arg 1%} is greater than {@AmountOfMaxWarns}:
- execute console command "{@Over3WarnsCmd1}"
- execute console command "{@Over3WarnsCmd2}"
- if {@KickOnWarnLimitReach} is true:
- kick the player due to "{@prefix}%new line%&fYou have been warned &7{@AmountOfMaxWarns} &ftimes for advertising%new line%&fand have been kicked.%new line%&fPlease rejoin soon."
- command /frostaar [<text>]:
- aliases: /aar, /antiar, /chatreset, /antiadvertisement
- permission: frostchat.reset
- trigger:
- if arg-1 is not set:
- send "{@prefix} &fAre you sure? If so add 'confirm' after the command you just typed."
- if arg-1 is "confirm":
- set {frostantiadv.advs.%all players%} to 0
- send "{@prefix} &fAdvertisement warnings and kicks have been reset for all players."
- stop
- else:
- send "{@prefix} &fArgument not found."
- command /frostchat version:
- trigger:
- broadcast "&7This server is running FrostChat version {version}" to player
- broadcast "&7Detecting version. Please be patient, this may take a while." to player
- wait 3 seconds
- broadcast "&7Running package: &9{@version}"
- broadcast "&7Download Or Report An Issue Here: &9https://www.spigotmc.org/resources/1-12x-frostchat-skript.44229/"
- wait 30 seconds
- broadcast "&7Hello! Thanks for installing the FrostChat plugin!"
- broadcast "&7FrostChat created by FrostedWeFall is designed to be an optional alternative to many other Chat Control Skripts!"
- wait 5 seconds
- broadcast "&7If you have any bugs or any issues you want to report?"
- broadcast "&7Click on the link: &bhttps://www.spigotmc.org/resources/1-12x-frostchat-skript.44229/"
- broadcast "&7Enjoy the plugin"
- command /frostchat reload:
- permission: frostchat.admin
- permission message: {@nopermission}
- trigger:
- send "&cPlease confirm by typing /frostchat confirm"
- broadcast "&cPlease note that usage of this command can possibly crash Skript, FrostChat, or your server in general as it has not been fully tested!"
- command /frostchat confirm:
- permission: frostchat.admin
- permission message: {@nopermission}
- trigger:
- broadcast "&7&o[Reloading]: &cPlease note that usage of this command can possibly crash Skript, FrostChat, or your server in general as it has not been fully tested. This may be in error of FrostChat {@version} or Skript or an issue with your server version or settings.. Please do not contact the developer of FrostChat ( FrostedWeFall ) until it is confirmed that it was at fault of FrostChat."
- execute console command "/sk reload FrostChat.jar"
- command /frostchat info:
- trigger:
- send "&7FrostChat Version: &9{@version}"
- send "&7A basic alternative to Chat Control made inside of Skript!"
- send "&7Developer / Creator: &9FrostedWeFall"
- command /frostchat [<arg-1>]
- permission message: &cYou don't have permission!
- trigger:
- if arg 1 is "clear":
- loop 300 times:
- broadcast ""
- broadcast ""
- broadcast "{@prefix} &2Chat has been cleared by &a%player%"
- if arg 1 is "mute":
- set {chat} to false
- broadcast "{@prefix} &cChat has been disabled by %player%&8."
- if arg 1 is "unmute":
- set {chat} to true
- broadcast "{@prefix} &aChat has been enabled by %player%&8."
Advertisement
Add Comment
Please, Sign In to add comment