ChatStaff 1.0.0

/staff <text> to send a message to chat staff

  1. skols
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Créé par Skols.
    #======================
    Code (Text):
    #======================
    #    Skript Basique   =
    # Développé par Skols =
    #    Version 1.0.0    =
    #======================              

    options:
        prefix: &f[&4Staff&f]
        cmd: staff
        permission: staff.send
        permreceved: staff.receved
        aliase1: cs
        aliase2: chatstaff

    command /{@cmd} [<text>]:
        permission: {@permission}
        aliases: {@aliase1}, {@aliase2}
        trigger:
            if arg 1 is "help" or "Help":
                Send "&e---- &6Help&e -- &6Page &41&6/&41&e ----"
                Send "&6==== {@prefix}&6 ===="
                Send "&6/{@cmd} help&f : for help"
                send "&6/{@cmd} reload&f : Reloads the plugin"
                Send "&6/{@cmd} <Text>&f : talk in the chat staff."
                stop
            if arg 1 is "reload":
                make console execute command "/sk reload %script%"
                wait 10 ticks
                send "&a&aSuccessfully reloaded %script%"
                stop
            if arg 1 is set:
                loop all players:
                    loop-player has permission "{@permreceved}":
                        message "{@prefix} &6> &6[&c%player%&6] &e: &a%arg%" to loop-player
                        stop
            if arg 1 is not set:
                send "{@prefix} &6> &fUsage /{@cmd} <Text>"
                stop
            else:
                send "{@prefix} &6> &cYou do not have the required permissions!"