Ja robię teraz własny skript na anticheat na wersje 1.20.x i on nie będzie walił fałszywymi flagami, fakt faktem będzie w jakimś stopniu obciążał serwer bo to skript. Jeśli skończę to mam pytanie, za ile go sprzedać?
# skrypt stworzony przez Diamonsterek i Diamonsterek2
# zakaz edytowania, sprzedawania i udostępniania
command /ustawspawn:
permission: op
permission message: &cNie masz uprawnień do tej komendy!
trigger:
set {spawn} to location of player
send "&aUstawiono spawa!" to player
command /usunspawn:
permission: op
permission message: &cNie masz uprawnień do tej komendy!
trigger:
if {spawn} is set:
delete {spawn}
send "&cUsunięto spawn!" to player
else:
send "&cSpawn nie był ustawiony!" to player
command /spawn:
trigger:
if {spawn} is not set:
send "&cNie znaleziono spawna" to player
stop
if {spawn.cooldown::%player%} is not set:
set {spawn.cooldown::%player%} to true
set {spawn.location::%player%} to location of player
send title "&a" with subtitle "&7Zostaniesz &fprzeteleportowany &fza &a4s&7!" to player
send actionbar "&7Zostaniesz &fprzeteleportowany &fza &a4s&7!" to player
wait 1 second
if distance between {spawn.location::%player%} and location of player > 0.5:
delete {spawn.cooldown::%player%}
delete {spawn.location::%player%}
send subtitle "&7Teleportacja &azostała &7anulowana!" to player
stop
send title "&a" with subtitle "&7Zostaniesz &fprzeteleportowany &fza &a3s&7!" to player
send actionbar "&7Zostaniesz &fprzeteleportowany &fza &a3s&7!" to player
wait 1 second
if distance between {spawn.location::%player%} and location of player > 0.5:
delete {spawn.cooldown::%player%}
delete {spawn.location::%player%}
send subtitle "&7Teleportacja &azostała &7anulowana!" to player
stop
send title "&a" with subtitle "&7Zostaniesz &fprzeteleportowany &fza &a2s&7!" to player
send actionbar "&7Zostaniesz &fprzeteleportowany &fza &a2s&7!" to player
wait 1 second
if distance between {spawn.location::%player%} and location of player > 0.5:
delete {spawn.cooldown::%player%}
delete {spawn.location::%player%}
send subtitle "&7Teleportacja &azostała &7anulowana!" to player
stop
send title "&a" with subtitle "&7Zostaniesz &fprzeteleportowany &fza &a1s&7!" to player
send actionbar "&7Zostaniesz &fprzeteleportowany &fza &a1s&7!" to player
wait 1 second
if distance between {spawn.location::%player%} and location of player > 0.5:
delete {spawn.cooldown::%player%}
delete {spawn.location::%player%}
send subtitle "&7Teleportacja &azostała &7anulowana!" to player
stop
send title "&a" with subtitle "&7Zostaniesz &fprzeteleportowany &fza &a965ms&7!" to player
send actionbar "&7Zostaniesz &fprzeteleportowany &fza &a965ms&7!" to player
wait 1 second
if distance between {spawn.location::%player%} and location of player > 0.5:
delete {spawn.cooldown::%player%}
delete {spawn.location::%player%}
send subtitle "&7Teleportacja &azostała &7anulowana!" to player
stop
if {spawn.cooldown::%player%} is set:
teleport player to {spawn}
send subtitle "&7Zostałeś &fprzeteleportowany&7!" to player
send "&aZostałeś przeteleportowany!" to player
delete {spawn.cooldown::%player%}
delete {spawn.location::%player%}
else:
send subtitle "&cJesteś już w trakcie teleportacji!" to player