SHOW:
|
|
- or go back to the newest paste.
| 1 | options: | |
| 2 | prefix: &7[&bFrostCHAT&7] | |
| 3 | AmountOfMaxWarns: 3 | |
| 4 | AdminCmdPerm: frostchat.admin | |
| 5 | BypassPermission: antiadv.bypass | |
| 6 | - | CancelMessage: true |
| 6 | + | CancelMessage: true |
| 7 | MainCmdAliases: /frostaa /aa /antiad | |
| 8 | DontAdvertiseHereMsg: &fPlease do not advertise here. All online staff have been notified. | |
| 9 | - | MainCmd: /frostchataa |
| 9 | + | |
| 10 | Over3WarnsCmd1: ban %arg 1% Advertising more than 3 times. | |
| 11 | Over3WarnsCmd2: broadcast %arg 1% has just been banned by FrostCHATANTI ADVERTISMENT for advertising more than 3 times! | |
| 12 | StaffWarnMsg: {@prefix} &7&o%player%&f is advertising! %message%
| |
| 13 | 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" | |
| 14 | WarnThePlayer: true | |
| 15 | StaffWarnMsg: true | |
| 16 | on chat: | |
| 17 | if message contains {@list}:
| |
| 18 | if player doesn't have permission "{@BypassPermission}":
| |
| 19 | if {@WarnThePlayer} is true:
| |
| 20 | send "{@prefix} {@DontAdvertiseHereMsg}"
| |
| 21 | else: | |
| 22 | add 1 to {frostantiadv.advs.%player%}
| |
| 23 | loop all players: | |
| 24 | if loop-player has permission "{@AdminCmdPerm}":
| |
| 25 | if {@StaffWarnMsg} is true:
| |
| 26 | send "{@prefix} {@StaffWarnMsg}" to loop-player
| |
| 27 | ||
| 28 | - | command /{@MainCmd} [<offlineplayer>] [<text>] [<text>]:
|
| 28 | + | command /frostaa [<offlineplayer>] [<text>] [<text>]: |
| 29 | aliases: {@MainCmdAliases}
| |
| 30 | permission: {@AdminCmdPerm}
| |
| 31 | trigger: | |
| 32 | if arg 1 is not set: | |
| 33 | send "&7&m--------------------------" | |
| 34 | send " {@prefix} &b&lCommands&8:"
| |
| 35 | send "&f" | |
| 36 | send "&8- &7/frostchat reload" | |
| 37 | send "&8- &7/frostchat help" | |
| 38 | send "&8- &7/frostchat version" | |
| 39 | send "&8- &7/frostchat reload" | |
| 40 | send "&8- &7/frostchataa help" | |
| 41 | send "&8- &7/frostchat version" | |
| 42 | send "&8- &7/frostchataa [<offlineplayer>] [<text>] [<text>]:" | |
| 43 | send "&8- &7/frostaar reset" | |
| 44 | send "&8- &7/frostchataa set" | |
| 45 | send "&8- &7More commands Coming Soon!" | |
| 46 | send "&7" | |
| 47 | send "&7&m--------------------------" | |
| 48 | stop | |
| 49 | if arg 1 is "Stats" or "Warns": | |
| 50 | if arg 2 is set: | |
| 51 | send "&8&m--------------------------" | |
| 52 | send "&lStats:" | |
| 53 | send "&7" | |
| 54 | send "&eUsername &8- &7%arg 2%" | |
| 55 | set {_a} to "%{frostantiadv.advs.%arg 2%}%"
| |
| 56 | if {_a} contains "<none>":
| |
| 57 | set {_a} to 0
| |
| 58 | send "&eWarns &8- &7%{_a}%"
| |
| 59 | send "&7" | |
| 60 | send "&8&m--------------------------" | |
| 61 | stop | |
| 62 | else: | |
| 63 | send "{@prefix} &ePlease enter a valid username."
| |
| 64 | else: | |
| 65 | if arg 1 is set: | |
| 66 | if arg 2 is not set: | |
| 67 | send "&8&m--------------------------" | |
| 68 | send " &4Information:" | |
| 69 | send "&7" | |
| 70 | send "&fUsername: &7&o%arg 1%" | |
| 71 | send "&fWarnings: &7&o%{antiadv.advs.%arg 1%}%"
| |
| 72 | send "&fPlayer UUID: &7&o%uuid of player%" | |
| 73 | send "&fMax warns before Action: &7&o{@AmountOfMaxWarns}"
| |
| 74 | send "&7" | |
| 75 | send "&8&m--------------------------" | |
| 76 | stop | |
| 77 | else: | |
| 78 | if arg 1 is "reset": | |
| 79 | if arg 2 is set: | |
| 80 | set {frostantiadv.advs.%arg 2%} to 0
| |
| 81 | send "{@prefix} &6%arg 2%'s &earguments have been reset."
| |
| 82 | else: | |
| 83 | send "{@prefix} &cPlease specify a player."
| |
| 84 | if arg 2 is "set": | |
| 85 | set {frostantiadv.advs.%arg 1%} to arg 2
| |
| 86 | send "{@prefix} &7&o%arg 1%'s &fadvertisement warnings have been set to %arg 2%."
| |
| 87 | stop | |
| 88 | if arg 2 is "act" or "action": | |
| 89 | if arg 3 is set: | |
| 90 | execute player command "%arg 3%" | |
| 91 | if arg 3 is not set: | |
| 92 | 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%."
| |
| 93 | if {frostantiadv.advs.%arg 1%} is greater than {@AmountOfMaxWarns}:
| |
| 94 | execute console command "{@Over3WarnsCmd1}"
| |
| 95 | execute console command "{@Over3WarnsCmd2}"
| |
| 96 | if {@KickOnWarnLimitReach} is true:
| |
| 97 | 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."
| |
| 98 | command /frostaar [<text>]: | |
| 99 | aliases: /aar, /antiar, /chatreset, /antiadvertisement | |
| 100 | permission: frostchat.reset | |
| 101 | trigger: | |
| 102 | if arg-1 is not set: | |
| 103 | send "{@prefix} &fAre you sure? If so add 'confirm' after the command you just typed."
| |
| 104 | if arg-1 is "confirm": | |
| 105 | set {frostantiadv.advs.%all players%} to 0
| |
| 106 | send "{@prefix} &fAdvertisement warnings and kicks have been reset for all players."
| |
| 107 | stop | |
| 108 | else: | |
| 109 | send "{@prefix} &fArgument not found."
| |
| 110 | command /frostchat [<text>]: | |
| 111 | aliases: /fchat, /frostc | |
| 112 | trigger: | |
| 113 | if arg 1 is "reload": | |
| 114 | send "{@prefix} &aSkript has been reloaded&8!"
| |
| 115 | console command "/sk reload FrostChat.sk" | |
| 116 | if arg 1 is "help": | |
| 117 | send "{@prefix} &6&lCommands&8:"
| |
| 118 | send "&8- &7/frostchat reload" | |
| 119 | send "&8- &7/frostchat help" | |
| 120 | send "&8- &7/frostchat version" | |
| 121 | if arg 1 is not set: | |
| 122 | send "{@prefix} &6&lHelp&8:"
| |
| 123 | send "&8- &7FrostChat Skript By &aFrostedWeFall" | |
| 124 | send "&8- &7Version&8: &e1.2" | |
| 125 | send "&8- &7Youtube&8: &dArtzifyHD" | |
| 126 | if arg 1 is "version": | |
| 127 | send "&8- &7Version&8: &a1.2" | |
| 128 | send "&8- &7FrostChat Skript By &aFrostedWeFall" | |
| 129 | send "&8- &7https://www.spigotmc.org/resources/1-12x-frostchat-skript.44229/" | |
| 130 | command /chat [<text>]: | |
| 131 | permission: frostchat.chat | |
| 132 | permission message: &cYou don't have permission! | |
| 133 | trigger: | |
| 134 | if arg 1 is not set: | |
| 135 | send "{@prefix} &b&lCommands&8:"
| |
| 136 | send "&8- &7/chat clear" | |
| 137 | send "&8- &7/chat disable" | |
| 138 | send "&8- &7/chat enable" | |
| 139 | if arg 1 is "clear": | |
| 140 | loop 300 times: | |
| 141 | broadcast "" | |
| 142 | broadcast "" | |
| 143 | broadcast "{@prefix} &2Chat has been cleared by &a%player%"
| |
| 144 | if arg 1 is "disable": | |
| 145 | set {chat} to false
| |
| 146 | broadcast "{@prefix} &cChat has been disabled by an administrator&8."
| |
| 147 | if arg 1 is "enable": | |
| 148 | set {chat} to true
| |
| 149 | broadcast "{@prefix} &aChat has been enabled by an administrator&8."
| |
| 150 | ||
| 151 | on chat: | |
| 152 | if {chat} is false:
| |
| 153 | if player has permission "frostchat.chat": | |
| 154 | cancel event | |
| 155 | broadcast "&9%player's displayname%&8: &f%message%" | |
| 156 | else: | |
| 157 | cancel event | |
| 158 | send "{@prefix} &cChat has been disabled by an administrator&8!"
| |
| 159 | else: | |
| 160 | cancel event | |
| 161 | broadcast "&9%player's displayname%&8: &f%message%" |