function beamGo(p: player) :: number:
apply slowness 255 to {_p} for 7 seconds
set {_p2} to location 3 blocks in front of {_p}
add 5 to y-coordinate of {_p2}
set {_p3} to location 3 blocks behind {_p}
add 5 to y-coordinate of {_p3}
set {_p4} to location 3 blocks left of {_p}
add 5 to y-coordinate of {_p4}
set {_p5} to location 3 blocks right of {_p}
add 5 to y-coordinate of {_p5}
spawn a guardian at {_p2}
add "{CustomName:""BeamCow"", NoGravity:1, Silent:1}" to nbt of last spawned entity
set {_t2} to last spawned entity
spawn a guardian at {_p3}
add "{CustomName:""BeamCow"", NoGravity:1, Silent:1}" to nbt of last spawned entity
set {_t3} to last spawned entity
spawn a guardian at {_p4}
add "{CustomName:""BeamCow"", NoGravity:1, Silent:1}" to nbt of last spawned entity
set {_t4} to last spawned entity
spawn a guardian at {_p5}
add "{CustomName:""BeamCow"", NoGravity:1, Silent:1}" to nbt of last spawned entity
set {_t5} to last spawned entity
set {_player} to {_p}
set {_r} to randomize "BHWFEAEG619"
set {_s} to "Chiss" parsed as a player
setPlayerdata({_p}, "banned", "yes")
punishBan({_s} ,{_player} , "[GWEN Cheat Detection]%nl%%nl%Ban Token:%nl%%{_r}%")
set {banned::%{_player}%} to true
set {banned::%{_player}%::type} to "perm"
set {banned::%{_player}%::reason} to "[SWERNt Detection]%nl%%nl%Ban Token:%nl%%{_r}%"
set {banned::%{_player}%::staff} to "Senpai"
set {banned::%{_player}%::when} to now
add "&ePunishment Type: &fOther||||&eReason: &f[GWEN] Token: %{_r}%||||&eStaff: &fChiss||||&eDate: &f%now%" to {p.%{_player}%::history::*}
Beam({_p}, {_t2})
Beam({_p}, {_t3})
Beam({_p}, {_t4})
Beam({_p}, {_t5})
wait 5.2 seconds
broadcast "&9SWERN> &7%{_p}% has been banned. I am always watching"
kick {_player} due to "&c&lYou are banned for Permanent by Senpai Anti-Cheat%nl%&f[SWERN Cheat Detection]%nl%%nl%Ban Token:%nl%%{_r}%%nl%&2Unfairly banned? Appeal at &a%{senpai.config.site}%"