Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {_wolnyram} = 0
- {_ping.%player%} = 0
- {_ram} = 0
- {_tps} = 0
- {_port} = 0
- {_bukkit} = 0
- {_iloscslotow} = 0
- {_antiddos} = 0
- options:
- ping : 300
- atak : 5
- command /GLaDOS [<text>] [<text>]:
- trigger:
- if arg 1 is "ram":
- give 1 cat disc named "<green>Ram" to the player
- stop
- if arg 1 is "ping":
- set {_ping.%player%} to player's ping
- wait a tick
- send "<green>Twój ping to: <blue>%{_ping.%player%}%"
- if arg 1 is "info":
- set {_ip} to server's ip
- set {_port} to server's port
- set {_tps} to tps
- set {_bukkit} to bukkit version
- set {_iloscslotow} to max players
- set {_ram} to max memory
- send "<blue>============<red>GLaDOS<blue>============"
- send "<green>Adres IP serwera :<yellow> %{_ip}%"
- send "<green>Port serwera : <yellow>%{_port}%"
- send "<green>Wersja silnika CraftBukkit : <yellow>%{_bukkit}%"
- send "<green>Ilość slotów oraz maksymalna ilość ramu :<yellow> %{_ram}%B na %{_iloscslotow}% osób"
- send "<orange>Na każdą osobę powinno przypadać około 200 MB ramu czyli około 200 000 000 B"
- if arg 1 is "procedura":
- if arg 2 is "uruchom":
- execute console command "/save-all"
- wait 2 seconds
- execute console command "/stop <red>GLaDOS : Uruchomiłam procedurę antiDDos."
- if arg 2 is "pomoc":
- send "<green>Procedura obronna w razie wypadku ataku botów lub ataku typu DDos"
- send "<yellow>==========================================="
- send "<green>Krok 1 - Zapisuje mapę"
- send "<green>Krok 2 - Wyłącza serwer"
- send "<orange>GLaDOS nie jest w stanie włączyć serwera. Musisz to zrobić manualnie."
- if arg 1 is "aktualizuj":
- delete file /plugins/Skript/scripts/GLaDOS.sk
- download from %string% to file /plugins/Skript/scripts/GLaDOS.sk
- if arg 1 is "test":
- broadcast "test"
- on rightclick holding cat disc:
- name of player's held item is "<green>Ram":
- cancel event
- set {_wolnyram} to free memory
- wait a tick
- set {_ram} to max memory
- display "<green>Ilość wolnej pamięci ram :<blue> %{_wolnyram}%B<green> z : <blue>%{_ram}%B" on bossbar for player
- on any move:
- set {_ping.%player%} to player's ping
- wait a tick
- if {_ping.%player%} is bigger than {@ping}:
- kick the player by reason of "&4Twój ping przekracza {@ping} co powoduje przeciążenie serwera. Wyłącz pobieranie, przeglądarke, komunikatory typu Skype itp."
- on chat:
- replace all "chuj" and "huj" and "kurwa" and "spierdalaj" and "fuck" with "(<orange>GLaDOS :<red> Graczu <blue>%player%<red> nie używaj takich słów.)" in the message
Advertisement
Add Comment
Please, Sign In to add comment