QDSTUDIOPAYPAL CODE

przerób mi ten script lpejej zamaist minecode to Zen ma być łądnijeszy komendy /chat cc chat off on

📎 1 file 1,067 chars
📄
pasted-code-1791625056009.txt
txt 36 lines
▶
# Zmienna do kontroli czatu
variables:
    {chat.enabled} = true

# /chaton - włącza czat
command /chaton:
    permission: minecode.chaton
    permission message: &cnie posiadasz permisji!
    trigger:
        set {chat.enabled} to true
        broadcast "&aCzat został &2włączony&a przez &f%player%"
        
# /chatoff - wyłącza czat
command /chatoff:
    permission: minecode.chatoff
    permission message: &cnie posiadasz permisji!
    trigger:
        set {chat.enabled} to false
        broadcast "&cCzat został &4wyłączony&c przez &f%player%"

# /chatclear - czyści czat wszystkim
command /chatclear:
    permission: minecode.chatclear
    permission message: &cnie posiadasz permisji!
    trigger:
        loop all players:
            loop 100 times:
                send "" to loop-player
        broadcast "&bCzat został wyczyszczony przez &f%player%"

# Blokowanie wiadomości, gdy czat wyłączony
on chat:
    if {chat.enabled} is not true:
        cancel event
        send "&cCzat jest aktualnie wyłączony!" to player
Kodari AI
KodariOct 10 at 9:38 am 1
ZenChatManager
ZenChatManager is a modern Minecraft Skript plugin that provides comprehensive chat control with a sleek Zen-style interface. It replaces the old minecode system with elegant commands: /chat cc clears the chat for all players, /chat off disables global chat, and /chat on re-enables it. The plugin features permission-based access, colorful broadcast notifications, and automatic message blocking when chat is disabled. Players receive clear feedback messages in Polish, with a refined color scheme using aqua, green, and red accents for better visibility. The script maintains a global chat state variable and integrates seamlessly with existing server permissions.

Umieść plik zen-chat.sk w plugins/Skript/scripts/, a następnie użyj /sk reload zen-chat. Komendy: /chat on, /chat off, /chat cc (wymagają permisji zen.chat).

Kodari can make mistakes. Review important code before using.
Files
zen-chat.sk
Code
1 33
zen-chat.sk
options:
    prefix: &8[&bZen&8] &7»&r

on script load:
    if {chat.enabled} is not set:
        set {chat.enabled} to true

command /chat [<text>]:
    permission: zen.chat
    permission message: {@prefix} &cNie masz uprawnień do zarządzania czatem.
    trigger:
        if arg-1 is "on":
            set {chat.enabled} to true
            broadcast "{@prefix} &aCzat został włączony przez &f%player%&a."
            stop

        if arg-1 is "off":
            set {chat.enabled} to false
            broadcast "{@prefix} &cCzat został wyłączony przez &f%player%&c."
            stop

        if arg-1 is "cc":
            loop 100 times:
                broadcast ""
            broadcast "{@prefix} &bCzat został wyczyszczony przez &f%player%&b."
            stop

        send "{@prefix} &7Użycie: &f/chat <on|off|cc>" to player

on chat:
    if {chat.enabled} is false:
        cancel event
        send "{@prefix} &cCzat jest obecnie wyłączony." to player