DominikCiupa3

GLaDOS

Sep 6th, 2014
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.14 KB | None | 0 0
  1. variables:
  2. {_wolnyram} = 0 #nie zmieniaj
  3. {_ping.%player%} = 0 #nie zmieniaj
  4. {_ram} = 0 #nie zmieniaj
  5. {_port} = 0 #nie zmieniaj
  6. {_bukkit} = 0 #nie zmieniaj
  7. {_iloscslotow} = 0 #nie zmieniaj
  8. {_antiddos} = 0 #nie zmieniaj
  9. options:
  10. ping : 300 #Limit pingu. Jeżeli gracz będzie miał wyższy ping niż ustalony tutaj zostanie wyrzucony.
  11. command /GLaDOS [<text>] [<text>] [<text>]:
  12. trigger:
  13. if arg 1 is "ram":
  14. if arg 2 is not set:
  15. if player have permission "glados.admin":
  16. give 1 cat disc named "<green>Ram" to the player
  17. stop
  18. if arg 1 is "ping":
  19. set {_ping.%player%} to player's ping
  20. wait a tick
  21. send "<orange>GLaDOS :<green>Twój ping to: <blue>%{_ping.%player%}%"
  22. if arg 1 is "info":
  23. if player have permission "glados.admin":
  24. set {_ip} to server's ip
  25. set {_port} to server's port
  26. set {_bukkit} to bukkit version
  27. set {_iloscslotow} to max players
  28. set {_ram} to max memory
  29. send "<blue>============<red>GLaDOS<blue>============"
  30. send "<green>Adres IP serwera :<yellow> %{_ip}%" #może nie działać
  31. send "<green>Port serwera : <yellow>%{_port}%"
  32. send "<green>Wersja silnika CraftBukkit : <yellow>%{_bukkit}%"
  33. send "<green>Ilość slotów oraz maksymalna ilość ramu :<yellow> %{_ram}%B na %{_iloscslotow}% osób"
  34. send "<orange>Na każdą osobę powinno przypadać około 200 MB ramu czyli około 200 000 000 B"
  35. if arg 1 is "procedura":
  36. if arg 2 is "uruchom":
  37. if player have permission "glados.admin":
  38. execute console command "/save-all"
  39. wait 2 seconds
  40. execute console command "/stop <red>GLaDOS : Uruchomiłam procedurę antiDDos."
  41. if arg 2 is "pomoc":
  42. if player have permission "glados.admin":
  43. send "<green>Procedura obronna w razie wypadku ataku botów lub ataku typu DDos"
  44. send "<yellow>==========================================="
  45. send "<green>Krok 1 - Zapisuje mapę"
  46. send "<green>Krok 2 - Wyłącza serwer"
  47. send "<orange>GLaDOS nie jest w stanie włączyć serwera. Musisz to zrobić manualnie."
  48. if arg 1 is "zarządzaj":
  49. if player have permission "glados.admin":
  50. add 1 Red Wool named "<red>Wyłącz serwer" to the player
  51. add 1 Blue Wool named "<blue>Przeładuj" to the player
  52. add 1 Yellow Wool named "<yellow>Wyłącz pvp" to the player
  53. add 1 Orange Wool named "<orange>Włącz pvp" to the player
  54. on rightclick holding red wool:
  55. name of player's held item is "<red>Wyłącz serwer":
  56. if player have permission "glados.admin":
  57. execute console command "/stop <red>Serwer został wyłączony przez <green>%player%"
  58. on rightclick holding blue wool:
  59. name of player's held item is "<blue>Przeładuj":
  60. if player have permission "glados.admin":
  61. execute console command "/reload"
  62. execute console command "/skript reload all"
  63. send "<orange>GLaDOS :<green> Przeładowałam serwer."
  64. on rightclick holding yellow wool:
  65. name of player's held item is "<yellow>Wyłącz pvp":
  66. if player have permission "glados.admin":
  67. disable PvP
  68. send "<orange>GLaDOS :<green> Wyłączyłam pvp w tym świecie"
  69. on rightclick holding orange wool:
  70. if player have permission "glados.admin":
  71. name of player's held item is "<orange>Włącz pvp":
  72. enable PvP
  73. send "<orange>GLaDOS :<green> Włączyłam pvp w tym świecie"
  74. on rightclick holding cat disc:
  75. name of player's held item is "<green>Ram":
  76. if player have permission "glados.admin":
  77. cancel event
  78. set {_wolnyram} to free memory
  79. wait a tick
  80. set {_ram} to max memory
  81. display "<green>Ilość wolnej pamięci ram :<blue> %{_wolnyram}%B<green> z : <blue>%{_ram}%B" on bossbar for player
  82.  
  83. on any move:
  84. set {_ping.%player%} to player's ping
  85. wait a tick
  86. if {_ping.%player%} is bigger than {@ping}:
  87. 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."
  88. on chat:
  89. 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