- Katılım
- 26 Şubat 2020
- Mesajlar
- 88
- En iyi cevaplar
- 2
- Tepki puanı
- 16
- Puanları
- 1,080
Kod:
# Gelişmiş Panelli AntiBot Skripti
# Bu skript, bot saldırılarını tespit eder ve oyuncuların sunucuya erişimini kontrol eder. Ayrıca, bir panel aracılığıyla yönetim sağlar.
options:
check_interval: 1 minute # Kontrol aralığı
max_connections: 3 # Bir IP adresinden izin verilen maksimum bağlantı sayısı
ban_duration: 5 minutes # Ban süresi
panel_command: /antibotpanel # Panel komutu
variables:
{bot_ips::*} = list of bot IPs
{player_connections::*} = list of player connections
command /antibotpanel:
permission: op
trigger:
open chest with 3 rows named "&cAntiBot Panel" to player
format gui slot 0 of player with redstone block named "&cBot IP'leri Görüntüle" to run:
send "&aBot IP'leri: %{bot_ips::*}%" to player
format gui slot 1 of player with iron_sword named "&cAktif Bağlantılar" to run:
send "&aAktif Bağlantılar: %{player_connections::*}%" to player
format gui slot 2 of player with barrier named "&cAntiBot Sistemini Kapat" to run:
delete {antibot_active}
send "&cAntiBot sistemi devre dışı bırakıldı!" to player
format gui slot 3 of player with emerald named "&aAntiBot Sistemini Aç" to run:
set {antibot_active} to true
send "&aAntiBot sistemi aktif hale getirildi!" to player
every {@check_interval}:
if {antibot_active} is true:
loop all players:
add 1 to {player_connections::%loop-player's ip%}
if {player_connections::%loop-player's ip%} > {@max_connections}:
add loop-player's ip to {bot_ips::*}
kick loop-player due to "&cBot saldırısı tespit edildi!"
ban ip loop-player's ip for {@ban_duration}
send "&cBot saldırısı tespit edildi ve IP banlandı: %loop-player's ip%" to all ops
clear {player_connections::*}
on join:
if {antibot_active} is true:
if player's ip is in {bot_ips::*}:
kick player due to "&cBot saldırısı tespit edildi!"
Çalışıp çalışmadıgını bilmiyorum test edilmedi.
Botları engellemek için ekstra eklentilerde mevcuttur bu bir örnektir.