Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-------------------------------------------------#
- # #
- # Autor: Happy.GFX #
- # Wersja: 1.0 #
- # #
- #-------------------------------------------------#
- #-----------#
- # OPCJE #
- #-----------#
- options:
- prefix: &8[&9Happy&f&lChat&8]
- ip: TWOJEIP.PL
- ts: TS.TWOJEIP.PL
- www: WWW.TWOJEIP.PL
- k1: &8
- k2: &7
- k3: &9
- #----------#
- # MOTD #
- #----------#
- on join:
- loop 100 times:
- send " "
- loop 1 times:
- send "{@k2}*{@k2}&m-----&r{@k2}*{@k1} Witaj na {@k3}{@ip}! {@k2}*{@k2}&m-----&r{@k2}*"
- send ""
- send ""
- send "{@k1}» &fNasz ts to: {@k3}{@ts}!."
- send "{@k1}» &fNasza strona: {@k3}{@www}!."
- send ""
- send ""
- send "{@k2}*{@k2}&m-----&r{@k2}* {@k2}*{@k2}&m-----&r{@k2}* {@k2}*{@k2}&m-----&r{@k2}* {@k2}*{@k2}&m-----&r{@k2}*"
- command /c [<text>] [<text>]:
- trigger:
- #---------------#
- # CHAT CLEAR #
- #---------------#
- if arg 1 is "czysc" or "cc" or "clear":
- if arg 2 is set:
- loop 100 times:
- send " " to all players
- loop 1 times:
- send "{@prefix} &7Chat zostal wyczyszczony przez: {@k3}%player%" to all players
- send "{@k1}» {@k3}Powód: {@k2}%arg 2%" to all players
- send "" to all players
- else:
- loop 100 times:
- send " " to all players
- loop 1 times:
- send "{@prefix} {@k2}Chat zostal wyczyszczony przez: {@k3}%player%" to all players
- send " " to all players
- #---------------#
- # CHAT OFF #
- #---------------#
- if arg 1 is "off" or "wylacz":
- if {happychat} is false:
- send " " to all players
- send "{@prefix} {@k2}Chat jest juz &c&lwylaczony!" to all players
- send " " to all players
- else:
- set {happychat} to false
- loop 5 times:
- send " " to all players
- loop 1 times:
- send "{@prefix} {@k2}Chat zostal &c&lwylaczony {@k2}przez: {@k3}%player%" to all players
- loop 2 times:
- send " " to all players
- #----------------#
- # CHAT ON #
- #----------------#
- if arg 1 is "on" or "wlacz":
- if {happychat} is true:
- send " " to all players
- send "{@prefix} {@k2}Chat jest juz &a&lwlaczony!" to all players
- send " " to all players
- else:
- set {happychat} to true
- loop 5 times:
- send " " to all players
- loop 1 times:
- send "{@prefix} {@k2}Chat zostal &a&lwlaczony {@k2}przez: {@k3}%player%" to all players
- loop 2 times:
- send " " to all players
- #--------------------#
- # CHAT RELOAD #
- #--------------------#
- if argument 1 is "reload":
- if player has permission "HappyChat.Reload":
- execute console command "skript reload HappyChat"
- message "{@prefix} &7Skript &9HappyChat &apoprawnie uruchomiony!"
- else:
- message "&4BLAD: &cNie masz permisji: &8(&7HappyChat.Reload&8)"
- #-------------------#
- # CHAT POMOC #
- #-------------------#
- if arg 1 is "info" or "pomoc":
- if {happychat} is true:
- send "{@k2}*{@k2}&m-----&r{@k2}* {@prefix} {@k2}*{@k2}&m-----&r{@k2}*"
- send ""
- send "{@k1}» {@k3}/c on {@k1}- {@k2}Wlacza chat!"
- send "{@k1}» {@k3}/c off {@k1}- {@k2}Wylacza chat!"
- send "{@k1}» {@k3}/c cc {@k1}- {@k2}Czysci chat!"
- send "{@k1}» {@k3}/c reload {@k1}- {@k2}Przeladowywuje skrypt!"
- send "{@k1}» {@k3}/c info {@k1}- {@k2}Informacje o skrypcie!"
- send ""
- send "{@k2}*{@k2}&m-----&r{@k2}* {@prefix} {@k2}*{@k2}&m-----&r{@k2}*"
- #-------------------#
- # CHAT MENU #
- #-------------------#
- if arg 1 is not set:
- open chest with 1 rows named "&5&lCHAT &e&lMenu:" to player
- format slot 1 of player with 1 of blue wool named "&6» &eAUTOR SKRYPTU" to close then run [make player execute command "/chat autor"]
- format slot 2 of player with 2 of blue wool named "&6» &bWYCZYSC CZAT" to close then run [make player execute command "/chat clear"]
- format slot 6 of player with 3 of blue wool named "&6» &cWYLACZ CZAT" to close then run [make player execute command "/chat off"]
- format slot 7 of player with 4 of blue wool named "&6» &aWLACZ CHAT" to close then run [make player execute command "/chat on"]
- stop
- #----------------#
- # ON LOAD #
- #----------------#
- on load:
- send "" to console
- send "" to console
- send "" to console
- send "{@prefix} &7Skript &9HappyChat &apoprawnie uruchomiony!" to console
- send "{@prefix} &7Wykonany przez &9Happy.GFX&a!" to console
- send "" to console
- send "" to console
- send "" to console
- #---------------#
- # CHAT OFF #
- #---------------#
- on chat:
- if {happychat} is false:
- player don't have permissions "happychat.*" or "happychat.spam":
- cancel event
- send "{@prefix} {@k1}Chat jest &c&lwylaczony!"
- #----------------#
- # CHAT LOGI #
- #----------------#
- on chat:
- log "%player%: %message%" to "logi-chatu.log"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement