Facebook
From DrBooker, 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 358
  1. variables:
  2.         {przeklenstwa.chat} = true
  3.         {faq.chat} = true
  4.         {chat.stan} = true
  5.         {mute.chat} = 0
  6.  
  7. on chat:
  8.         if player don't have permission "chat.przeklenstwa":
  9.                 if {przeklenstwa.chat} is true:
  10.                         message contains "cipa" or "kurwa" or "japierdole" or "pierdole" or "jebac" or "jebany" or "chuj" or "huj" or "suka" or "kutas":
  11.                                 execute console command "/mute %player% %{mute.chat}%min"
  12.                                 cancel event
  13.                                 loop all players:
  14.                                         loop-players has permission "chat.przeklenstwa":
  15.                                                 message "&9[Chat] &e&l%player%: &e%message%" to loop-players
  16.         if sender is player:
  17.                 if {faq.chat} is true:
  18.                         message contains "jak stworzyc wyspe" or "jak zrobic wyspe"
  19.                         cancel event
  20.                         send "&7[&6&lFAQ&7] &e&l/is create" to player
  21.         if {chat.stan} is false:
  22.                 if player has permission "chat.pisz" or "chat.*":
  23.                         stop trigger
  24.                 else:
  25.                         cancel event
  26.                         send "&6&lChat jest wylaczony."
  27.                         stop trigger
  28.  
  29. options:
  30.         off: &e&lChat zostal &6&lWYLACZONY!
  31.         on: &e&lChat zostal &6&lWLACZONY!
  32.         clear: &e&lChat zostal &6&lWYCZYSZCZONY &e&lprzez &6&l%player%!
  33.         siebie: &e&lChat zostal &6&lWYCZYSZCZONY &e&ldla &6&l%player%&e&l!
  34.         nopermission: &cNie masz permisji do tej komendy.
  35.         chat-jest-juz-off: &6&lChat &e&ljest juz wylaczony&6&l.
  36.         chat-jest-juz-on: &6&lChat &e&ljest juz wlaczony&6&l.
  37.  
  38. command /chat [<text>] [<text>] [<text>]:
  39.         permission: chat.*
  40.         permission message: {@nopermission}
  41.         trigger:
  42.                 if executor is player:
  43.                         if arg 1 is not set:
  44.                                 open chest with 1 rows named "&6&lCHAT &7(&e&lGUI&7)" to player
  45.                                 wait 2 ticks
  46.                                 format slot 0 of player with 1 of red clay named "&6&lWYLACZ CHAT" to run [execute player command "chat wylacz"]
  47.                                 format slot 1 of player with 1 of light green clay named "&6&lWLACZ CHAT" to run [execute player command "chat wlacz"]
  48.                                 format slot 2 of player with 1 of red clay named "&6&lWYLACZ PRZEKLENSTWA" to run [execute player command "chat off przeklenstwa"]
  49.                                 format slot 3 of player with 1 of light green clay named "&6&lWLACZ PRZEKLENSTWA" to run [execute player command "chat on przeklenstwa"]
  50.                                 format slot 4 of player with 1 of red clay named "&6&lWYLACZ FAQ" to run [execute player command "chat off faq"]
  51.                                 format slot 5 of player with 1 of light green clay named "&6&lWLACZ FAQ" to run [execute player command "chat on faq"]
  52.                                 format slot 6 of player with 1 of yellow clay named "&6&lWYCZYSC CHAT DLA WSZYSTKICH" to run [execute player command "chat wyczysc"]
  53.                                 format slot 7 of player with 1 of orange clay named "&6&lWYCZYSC CHAT DLA SIEBIE" to run [execute player command "chat siebie"]
  54.                                 format slot 8 of player with 1 of book named "&6&lINFO I CHAT'CIE" to close then run [execute player command "chat info"]
  55.                         if arg 1 is "wylacz":
  56.                                 if {chat.stan} is false:
  57.                                         send "{@chat-jest-juz-off}"
  58.                                         stop
  59.                                 set {chat.stan} to false
  60.                                 broadcast "{@off}"
  61.                                 stop
  62.                         if arg 1 is "wlacz":
  63.                                 if {chat.stan} is true:
  64.                                         send "{@chat-jest-juz-on}"
  65.                                         stop
  66.                                 set {chat.stan} to true
  67.                                 broadcast "{@on}"
  68.                                 stop
  69.                         if arg 1 is "wyczysc":
  70.                                 loop 100 times:
  71.                                         broadcast ""
  72.                                 broadcast "{@clear}"
  73.                                 stop
  74.                         if arg 1 is "siebie":
  75.                                 loop 100 times:
  76.                                         send ""
  77.                                 send "{@siebie}"
  78.                                 stop
  79.                         if arg 1 is "info":
  80.                                 send "&6&m=========================" to player
  81.                                 send "&7&l            INFO" to player
  82.                                 send "&6&m=========================" to player
  83.                                 send "&2&l        ChatManager" to player
  84.                                 if {faq.chat} is true:
  85.                                         send "&aFAQ: &2wlaczone" to player
  86.                                 if {faq.chat} is false:
  87.                                         send "&aFAQ: &2wylaczone" to player
  88.                                 if {przeklenstwa.chat} is true:
  89.                                         send "&aPRZEKLENSTWA: &2wlaczone" to player
  90.                                 if {przeklenstwa.chat} is false:
  91.                                         send "&aPRZEKLENSTWA: &2wylaczone" to player
  92.                                 send "&aCZAS MUTE: &2%{mute.chat}%min" to player
  93.                                 send "&6&m=========================" to player
  94.                                 send "&aChatManager v1.1 by &2&lDrBooker"
  95.                         if arg 1 is "off":
  96.                                 if arg 2 is "faq":
  97.                                         set {faq.chat} to false
  98.                                         send "&e&lPomyslnie wylaczono &6&lFAQ&e&l."
  99.                                 if arg 2 is "przeklenstwa":
  100.                                         set {przeklenstwa.chat} to false
  101.                                         send "&e&lPomyslnie wylaczono &6&lPRZEKLENSTWA&e&l."
  102.                         if arg 1 is "on":
  103.                                 if arg 2 is "faq":
  104.                                         set {faq.chat} to true
  105.                                         send "&e&lPomyslnie wlaczono &6&lFAQ&e&l."
  106.                                 if arg 2 is "przeklenstwa":
  107.                                         set {przeklenstwa.chat} to true
  108.                                         send "&e&lPomyslnie wlaczono &6&lPRZEKLENSTWA&e&l."
  109.                         if arg 1 is "ustaw":
  110.                                 if arg 2 is "mute":
  111.                                         if arg 3 is set:
  112.                                                 set {mute.chat} to argument 3
  113.                                                 send "&e&lUstawiles mute'y na &6&l%{mute.chat}%min&e&l."
  114.                                         if arg 3 is not set:
  115.                                                 send "&e&lUstaw czas!"
  116.                         if arg 1 is "help":
  117.                                 send "&6&m=========================" to player
  118.                                 send "&7&l        ChatManager" to player
  119.                                 send "&6&m=========================" to player
  120.                                 send "&a/czas &7<----- &2otwiera gui z chat'em." to player
  121.                                 send "&a/czas ustaw mute <czas> &7 <----- &2ustawia czas auto-mute." to player