Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #--------------------------------------------------------------------------------
- # (Ban Skript)
- # Credit: 70sOn7
- #
- # Do not claim this, as it is public and made by me.
- #
- # Commands:
- #
- # /ban - Bans a player
- # /ac - Shows all AntiCheat Related options
- #
- #
- #
- # Dependencies:
- #
- # Skript
- # (https://dev.bukkit.org/projects/skript)
- #
- #
- #
- # Contact Me:
- #
- # Something wrong? Contact me via discord, 70sOn7#9245
- # Also I would love suggestions on other things to do!
- #
- # [This Part Affects Nothing]
- #--------------------------------------------------------------------------------
- # Customization Options
- #------------------------------------------------------------------------------
- # Customize these as these are the main essentials you'll use for this!
- #
- #<><><><><><><><><><><><><><><><><><>
- options:
- servername: ServerNameHere
- command: BanCommand
- command2: BanCommand2
- banpermission: BanPermission
- acpermission: AcPermission
- blacklistpermission: BlackListPermission
- command3: BlackListCommand
- # DO NOT CHANGE
- version: 1.1
- #<><><><><><><><><><><><><><><><><><>
- #
- # Put your server name where it says "ServerNameHere"
- # Put the command to ban people where it says "BanCommand"
- # Put another command to ban people where "BanCommand2" If you just want one command. Leave it blank!
- # Put your permission you want for the command in "BanPermission" place
- # Put your AntiCheat Notify permission in "AcPermission"
- # Put a command you blacklist people with in "BlackListCommand"
- #--------------------------------------------------------------------------------
- on join:
- set {_ver} to text from URL "https://pastebin.com/raw/dgtXejHS"
- if "%{_ver}%" is not equal to "%{@version}%":
- send ""
- send "&e(Ban Skript)"
- send " &7By: 70sOn7"
- send " &7Current Version: {@version}"
- send " &7Newest Version: &aAvailable"
- send " &7Link: <link:https://pastebin.com/dgtXejHS>&bhttps://pastebin.com/raw/dgtXejHS<reset>"
- send ""
- command /{@command3} [<offlineplayer>] [<text>]:
- trigger:
- if player has permission "{@blacklistpermission}":
- if arg-1 is not set:
- send "&e/blacklist (Player) (Reason)"
- stop
- if arg-2 is not set:
- send "&e/blacklist (Player) (Reason)"
- stop
- if arg-1 is set:
- if arg-2 is set:
- broadcast "&e%player% &7has &oblacklisted &e%arg-1% &7for &e%arg-2% &e[FOREVER]"
- kick arg-1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-2%%nl%"
- IP ban arg-1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-2%%nl%"
- else:
- send "&cYou dont have permission for this command!"
- command /{@command} [<offlineplayer>] [<number>] [<text>] [<text>]:
- aliases: {@command2}
- trigger:
- if player has permission "{@banpermission}":
- if arg-1 is not set:
- send "&e/ban (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /ban Timmy103 3 Days Disrespect"
- stop
- if arg-2 is not set:
- send "&e/ban (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /ban Timmy103 3 Days Disrespect"
- stop
- if arg-3 is not set:
- send "&e/ban (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /ban Timmy103 3 Days Disrespect"
- stop
- if arg-4 is not set:
- send "&e/ban (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /ban Timmy103 3 Days Disrespect"
- stop
- if command sender is console:
- set {pec} to "CONSOLE"
- if command sender is player:
- set {pec} to player
- if arg-3 is "s" or "second" or "seconds":
- set {tn.%arg-1%} to arg 2
- set {bd.%arg-1%} to now
- broadcast "&e%{pec}% &7has banned &e%arg-1% &7for &e%arg-4% &e[%arg-2% SECONDS]"
- kick arg-1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% SECONDS"
- ban arg-1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% SECONDS"
- add arg 1 to {bps::*}
- if arg-3 is "m" or "minute" or "minutes":
- set {tn.%arg-1%} to arg 2 * 60
- set {bd.%arg-1%} to now
- broadcast "&e%{pec}% &7has banned &e%arg-1% &7for &e%arg-4% &e[%arg-2% MINUTES]"
- kick arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% MINUTES"
- ban arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% MINUTES"
- add arg 1 to {bps::*}
- if arg-3 is "h" or "hour" or "hours":
- set {tn.%arg-1%} to arg 2 * 3600
- set {bd.%arg-1%} to now
- broadcast "&e%{pec}% &7has banned &e%arg-1% &7for &e%arg-4% &e[%arg-2% HOURS]"
- kick arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% HOURS"
- ban arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% HOURS"
- add arg 1 to {bps::*}
- if arg-3 is "d" or "day" or "days":
- set {tn.%arg-1%} to arg 2 * 86400
- set {bd.%arg-1%} to now
- broadcast "&e%{pec}% &7has banned &e%arg-1% &7for &e%arg-4% &e[%arg-2% DAYS]"
- ban arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% DAYS"
- kick arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% DAYS"
- add arg 1 to {bps::*}
- if arg-3 is "w" or "week" or "weeks":
- set {tn.%arg-1%} to arg 2 * 604800
- set {bd.%arg-1%} to now
- broadcast "&e%{pec}% &7has banned &e%arg-1% &7for &e%arg-4% &e[%arg-2% WEEKS]"
- ban arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% WEEKS"
- kick arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% WEEKS"
- add arg 1 to {bps::*}
- else:
- send "&cSorry, &7You dont have permission for this command!"
- on join:
- if player has permission "@{permission}":
- send " &7Currently running &eSevenBans v1.1"
- send " &7Any future updates will be posted!"
- play raw sound "entity.experience_orb.pickup" at player with pitch 1 volume 10
- every second:
- loop {bps::*}:
- remove 1 from {tn.%loop-value%}
- if {tn.%loop-value%} is 0:
- remove loop-value from {bps::*}
- unban loop-value
- #
- #
- # (Anti Cheat)
- # Flight
- # Reach
- #
- variables:
- {Detect.Reach} = true
- {Detect.Flight} = true
- {Detect.Fastmine} = true
- command /ac [<text>] [<text>]:
- permission: {@acpermission}
- permission message: &cSorry, &7You dont have permission for this command!
- trigger:
- if arg-1 is not set:
- send " &c&nAntiCheat&r "
- send ""
- send "&c/ac toggle &7- Toggles AC messages"
- send "&c/ac (disable/enable) (Type Of Hack) &7- Toggles a detect of a hack"
- send "&c/ac link &7- Give pastebin link"
- stop
- if arg-1 is "toggle":
- if {ac.%player%} is not set:
- send "&7Toggled &cAntiCheat Notifications &7On!"
- set {ac.%player%} to true
- stop
- if {ac.%player%} is true:
- send "&7Toggled &cAntiCheat Notifications &7Off!"
- delete {ac.%player%}
- stop
- if arg-1 is "disable":
- if arg-2 is not set:
- send "&cDetect Types: &7Flight, Reach, Fastmine"
- stop
- else:
- if arg-2 is not "Flight" or "Reach" or "Fastmine":
- send "&cDetect Types: &7Flight, Reach, Fastmine"
- stop
- else:
- if arg-2 is "Flight":
- set {Detect.Flight} to false
- send "&4[AC] &7Turned Flight Detect off"
- stop
- if arg-2 is "Reach":
- set {Detect.Reach} to false
- send "&4[AC] &7Turned Reach Detect off"
- stop
- if arg-2 is "Fastmine":
- set {Detect.Fastmine} to false
- send "&4[AC] &7Turned Fastmine Detect off"
- stop
- if arg-1 is "enable":
- if arg-2 is not set:
- send "&cDetect Types: &7Flight, Reach, Fastmine"
- stop
- else:
- if arg-2 is not "Flight" or "Reach" or "Fastmine":
- send "&cDetect Types: &7Flight, Reach, Fastmine"
- stop
- else:
- if arg-2 is "Flight":
- set {Detect.Flight} to true
- send "&4[AC] &7Turned Flight Detect on"
- stop
- if arg-2 is "Reach":
- set {Detect.Reach} to true
- send "&4[AC] &7Turned Reach Detect on"
- stop
- if arg-2 is "Fastmine":
- set {Detect.Fastmine} to true
- send "&4[AC] &7Turned Fastmine Detect on"
- stop
- if arg-1 is "link":
- send "&cLink: <link:https://pastebin.com/dgtXejHS>&7https://pastebin.com/edit/dgtXejHS<reset>"
- on any movement:
- {Detect.Flight} is true
- player's gamemode is not creative:
- if player's flight mode is false:
- if entity is player:
- set {%player%.yy} to player's altitude
- set {_block} to block at player
- set {_block2} to block under {_block}
- if {_block2} is not air:
- set {%player%.fly} to false
- stop
- else:
- wait 2 ticks
- set {_block} to block at player
- set {_bpos} to block at player
- set {_block2} to block under {_block}
- if {_block2} is air or sugar cane:
- if {%player%.yy} is less than or equal to player's altitude:
- wait 4 ticks
- if {%player%.yy} is less than or equal to player's altitude:
- set {_block} to block at player
- set {_block2} to block under {_block}
- if {_block2} is air or sugar cane:
- wait 2 ticks
- if {%player%.yy} is less than or equal to player's altitude:
- wait 3 ticks
- if {%player%.yy} is less than or equal to player's altitude:
- set {_block} to block at player
- set {_block2} to block under {_block}
- if {_block2} is air or sugar cane:
- set {%player%.fly} to true
- teleport player to {_bpos}
- delete {ok.novalue}
- add 1 to {notify.flight.%player%}
- if {notify.flight.%player%} is 4:
- loop all players:
- if loop-player has permission "{@acpermission}":
- wait 10 ticks
- {ac.%loop-player%} is true
- send "&4[AC] &c%player% &7is flying! &c[COULD BE BLOCK LAG]" to loop-player
- delete {notify.flight.%player%}
- else:
- set {%player%.fly} to false
- on damage:
- {Detect.Reach} is true
- attacker is a player
- victim is a player
- projectile doesn't exist
- set {_fl} to distance between attacker and victim
- if distance between attacker and victim is greater than 3.4:
- loop all players:
- if loop-player has permission "{@acpermission}":
- {ac.%loop-player%} is true
- send "&4[S7] &c%attacker% &7hit from &c%{_fl}% blocks &7away" to loop-player
- on damage:
- {Detect.Killaura} is true
- if victim is not facing east:
- if attacker is not facing west:
- attacker is player
- projectile doesn't exist
- set {_py} to yaw of attacker
- set {_dy1} to 50 + {_py}
- set {_dy2} to {_py} - 50
- set {_vy} to yaw of victim
- if {_vy} is not in between {_dy1} and {_dy2}
- add 1 to {notify.killaura.%attacker%}
- {notify.killaura.%attacker%} is 3
- loop all players:
- if loop-player has permission "{@acpermission}":
- send "&4[AC] &c%attacker% &7might be using KillAura!"
- if victim is not facing north:
- if attacker is not facing east:
- attacker is player
- projectile doesn't exist
- set {_py} to yaw of attacker
- set {_dy1} to 50 + {_py}
- set {_dy2} to {_py} - 50
- set {_vy} to yaw of victim
- if {_vy} is not in between {_dy1} and {_dy2}
- add 1 to {notify.killaura.%attacker%}
- {notify.killaura.%attacker%} is 3
- loop all players:
- if loop-player has permission "{@acpermission}":
- send "&4[AC] &c%attacker% &7might be using KillAura!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement