Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {_wolnyram} = 0 #nie zmieniaj
- {_ping.%player%} = 0 #nie zmieniaj
- {_ram} = 0 #nie zmieniaj
- {_port} = 0 #nie zmieniaj
- {_bukkit} = 0 #nie zmieniaj
- {_iloscslotow} = 0 #nie zmieniaj
- {_antiddos} = 0 #nie zmieniaj
- options:
- ping : 300 #Limit pingu. Jeżeli gracz będzie miał wyższy ping niż ustalony tutaj zostanie wyrzucony.
- command /GLaDOS [<text>] [<text>] [<text>]:
- trigger:
- if arg 1 is "ram":
- if arg 2 is not set:
- if player have permission "glados.admin":
- 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 "<orange>GLaDOS :<green>Twój ping to: <blue>%{_ping.%player%}%"
- if arg 1 is "info":
- if player have permission "glados.admin":
- set {_ip} to server's ip
- set {_port} to server's port
- 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}%" #może nie działać
- 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":
- if player have permission "glados.admin":
- execute console command "/save-all"
- wait 2 seconds
- execute console command "/stop <red>GLaDOS : Uruchomiłam procedurę antiDDos."
- if arg 2 is "pomoc":
- if player have permission "glados.admin":
- 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 "zarządzaj":
- if player have permission "glados.admin":
- add 1 Red Wool named "<red>Wyłącz serwer" to the player
- add 1 Blue Wool named "<blue>Przeładuj" to the player
- add 1 Yellow Wool named "<yellow>Wyłącz pvp" to the player
- add 1 Orange Wool named "<orange>Włącz pvp" to the player
- on rightclick holding red wool:
- name of player's held item is "<red>Wyłącz serwer":
- if player have permission "glados.admin":
- execute console command "/stop <red>Serwer został wyłączony przez <green>%player%"
- on rightclick holding blue wool:
- name of player's held item is "<blue>Przeładuj":
- if player have permission "glados.admin":
- execute console command "/reload"
- execute console command "/skript reload all"
- send "<orange>GLaDOS :<green> Przeładowałam serwer."
- on rightclick holding yellow wool:
- name of player's held item is "<yellow>Wyłącz pvp":
- if player have permission "glados.admin":
- disable PvP
- send "<orange>GLaDOS :<green> Wyłączyłam pvp w tym świecie"
- on rightclick holding orange wool:
- if player have permission "glados.admin":
- name of player's held item is "<orange>Włącz pvp":
- enable PvP
- send "<orange>GLaDOS :<green> Włączyłam pvp w tym świecie"
- on rightclick holding cat disc:
- name of player's held item is "<green>Ram":
- if player have permission "glados.admin":
- 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 "<orange>GLaDOS :<red> Twó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" and "dziwka" and "dzifka" and "kurfa" and "pizda" with "(<orange>GLaDOS :<red> Graczu <blue>%player%<red> nie używaj takich słów.)<reset>" in the message
Advertisement
Add Comment
Please, Sign In to add comment