Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # LuckyAntiCheat (LAC) Made by Tapen #
- # Do not take any credits of this AntiCheat, being found will be resulted with a permanent ban from the discord server of LAC and a blacklist from downloading. #
- variables:
- {bannedLAC::%player%} = false
- on join:
- set the join message to ""
- if {bannedLAC::%player%} = true:
- send ""
- send "&3&lYou are permanently banned from this server"
- send ""
- send "&bReason: &f[LAC] Blacklisted Modifications"
- send "&bBanned By: &fConsole"
- send ""
- kick the player due to ""
- on quit:
- set the quit message to ""
- on load:
- wait 1 second
- broadcast "&3[LAC] &bLoaded LuckyAntiCheat Made by Tapen."
- options:
- server_name: Gladiators
- # Reach Detection / LuckyAntiCheat Smart Detection #
- # Small Reach - Alert #
- # Blatant Reach - Autoban #
- on damage of player:
- attacker is a player
- projectile doesn't exist
- if distance between attacker and victim is greater than or equal to 4.25:
- loop all players:
- loop-player has permission "lac.alerts":
- send "&3[LAC] &b%attacker% may have reach. (%distance between attacker and victim% blocks)" to loop-player
- if distance between attacker and victim is greater than or equal to 5:
- loop all players:
- loop-player has permission "lac.alerts":
- send "&3[LAC] &b%attacker% has reach. (%distance between attacker and victim% blocks)" to loop-player
- send "&3[LAC] &bAutobanning %attacker%." to loop-player
- broadcast ""
- broadcast "&3&l%attacker% &fwas permanently blacklisted from &b{@server_name}"
- broadcast "&3&lReason: &fBlacklisted Modifications."
- broadcast ""
- wait 0.25 seconds
- send "" to attacker
- send "&3&lYou are permanently banned from this server" to attacker
- send "" to attacker
- send "&bReason: &f[LAC] Blacklisted Modifications" to attacker
- send "&bBanned By: &fConsole" to attacker
- send "" to attacker
- wait 0.1 seconds
- kick the attacker due to ""
- set {bannedLAC::%attacker%} to true
- command /lacunban [<offlineplayer>]:
- permission: lac.unban
- trigger:
- if arg is not set:
- send "&3[LAC] &b/lacunban (player)"
- if arg is set:
- set {bannedLAC::%arg%} to false
- broadcast "&3[LAC] &b%player% has unbanned %arg%"
- command /lacban [<offlineplayer>]:
- permission: lac.ban
- trigger:
- if arg is not set:
- send "&3[LAC] &b/lacban (player)"
- if arg is set:
- set {bannedLAC::%arg%} to true
- broadcast ""
- broadcast "&3&l%arg% &fwas permanently blacklisted from &b{@server_name}"
- broadcast "&3&lReason: &fBlacklisted Modifications."
- broadcast ""
- wait 0.25 seconds
- send "" to arg
- send "&3&lYou are permanently banned from this server" to arg
- send "" to arg
- send "&bReason: &f[LAC] Blacklisted Modifications" to arg
- send "&bBanned By: &fConsole" to arg
- send "" to arg
- wait 0.1 seconds
- kick the arg due to ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement