Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- AmountOfMaxWarns: 3 #This is the amount of warns a player can get before being punished.#
- AdminCmdPerm: antiadv.admin #This is the permission for all admin commands/args.#
- BypassPermission: antiadv.bypass #This is the permission to bypass the advertisement check. (VERY IMPORTANT!)#
- CancelMessage: true #This cancels the message if someone is advertising.#
- DontAdvertiseHereMsg: &fPlease do not advertise here. All online staff have been notified. #This is the message sent to the player if they are caught advertising.#
- KickOnWarnLimitReach: true #Set to false if you do not want players kicked when the warning limit is reached.#
- MainCmdAliases: /antiad #This is the alias to the main Skript command.#
- MainCmd: /antiadv #This is the actual main command.#
- Over3WarnsCmd1: ban %arg 1% Advertising more than 3 times. #This is the first command that is ran if a player exceeds the maximum warnings set.#
- Over3WarnsCmd2: broadcast %arg 1% has just been banned for advertising more than 3 times! #This is the second command that is ran if a player exceeds the maximum warnings set.#
- Prefix: &8[&4&lANTI-AD&8] #This is the Skript prefix. Change as you like!#
- StaffWarnMsg: {@Prefix} &7&o%player%&f could be advertising! %message% #This is the message that is sent to staff if a player is advertising in chat.#
- 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
- #---------------------------#
- # NOTICE! #
- # ^^^^ ^^^^ #
- # IF YOU DO NOT KNOW WHAT #
- # YOU ARE DOING THEN DO NOT #
- # EDIT THE SKRIPT BEYOND #
- # THIS POINT! #
- #---------------------------#
- on chat:
- if message contains {@list}:
- if player doesn't have permission "{@BypassPermission}":
- if {@WarnThePlayer} is true:
- send "{@Prefix} {@DontAdvertiseHereMsg}"
- else:
- add 1 to {antiadv.advs.%player%}
- loop all players:
- if loop-player has permission "{@AdminCmdPerm}":
- if {@StaffWarnMsg} is true:
- send "{@Prefix} {@StaffWarnMsg}" to loop-player
- command /{@MainCmd} [<offlineplayer>] [<text>] [<text>]:
- aliases: {@MainCmdAliases}
- permission: {@AdminCmdPerm}
- trigger:
- if arg 1 is not set:
- send "&8&m--------------------------"
- send " &4Commands:"
- send "&f"
- send "&f/antiad reset - &7Resets a player's warnings"
- send "&f/antiad set - &7Sets a player's warnings"
- send "&f/antiad act(ion) - &7Performs an action on a player"
- send "&f/antiadr - &7Reset''s all global warnings to 0"
- send "&cMore commands Coming Soon!"
- send "&7"
- send "&8&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 "%{antiadv.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 {antiadv.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 {antiadv.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 {antiadv.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 /antiadvreset [<text>]:
- aliases: /antiadvr, /antiadr, /antiadvr, /antiadvertisement
- permission: antiadv.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 {antiadv.advs.%all players%} to 0
- send "{@Prefix} &fAdvertisement warnings and kicks have been reset for all players."
- stop
- else:
- send "{@Prefix} &fArgument not found."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement