2n68

mka this a skript

announcements: store: - "" - "&b&lStore &8&l▪ &fThanks for supporting our server!" - "" - "&#8CC0CCHey there! Are you encoying your time on the server?" - "&#8CC0CCCheck out our &fstore&#8CC0CC! Your purchases allow us to continue" - "&#8CC0CCto provide you with the &fbest possible experience&#8CC0CC!" - "" - " &b→ store.nebulithmc.net ←" - "" discord: - "" - "&#7187D6&lDiscord &8&l▪ &fJoin Our Discord Community!" - "" - "&#96A4D3Hey there! Are you encoying your time on the server?" - "&#96A4D3Become more engaged with our &fcommunity&#96A4D3," - "&#96A4D3by joing our discord server!" - "" - " &#7187D6→ discord.gg/nebulithmc ←" - ""

Kodari AI
KodariJul 17 at 12:13 am 1
AnnouncementSystem
A Skript-based announcement system featuring formatted store and discord announcements with styled borders and gradient-like coloring. Includes permission-based commands for broadcasting pre-configured announcement templates. Designed for easy customization through options section and configurable message lists.

How to install & use

  1. Place the file in plugins/Skript/scripts/

  2. Reload with /sk reload announcements

  3. Use with:

    • /announcement store — broadcasts the store ad

    • /announcement discord — broadcasts the discord ad

Permissions:

  • announcements.use — base permission to use /announcement

  • announcements.store — allows store announcement

  • announcements.discord — allows discord announcement

Notes:

  • 60-second cooldown per player (adjustable via cooldown option)

  • Uses hex color codes (&#RRGGBB) — requires Skript 2.7+ or a hex-compatible version

  • Messages are stored in the announcements: section at the bottom for easy editing

[Generation stopped]

2n68

make it auto do it

Kodari AI
KodariJul 17 at 12:15 am 1
Kodari can make mistakes. Review important code before using.
Files
announcements.sk
Code
1 92
announcements.sk
# ──────────────────────────────────────────────────────
#  Announcements — Auto-broadcast with timers
# ──────────────────────────────────────────────────────
#  Place in: plugins/Skript/scripts/
#  Reload:   /sk reload announcements
# ──────────────────────────────────────────────────────

options:
    # ─── Timers (in seconds) ───
    store-interval: 600           # 10 minutes
    discord-interval: 900         # 15 minutes

    # ─── Prefix ───
    prefix: &8[&6!&8]&r


# ──────────────────────────────────────────────────────
#  Start the auto-loop on load
# ──────────────────────────────────────────────────────
on script load:
    # Store announcement loop
    set {_store} to 0
    loop {_store}:
        set {_stop} to false
        while true is true:
            if {_stop} is true:
                stop
            wait {@store-interval} seconds
            broadcast {_store-broadcast::*}
            if {_stop} is true:
                stop

    # Discord announcement loop
    set {_discord} to 0
    loop {_discord}:
        set {_stop} to true
        while true is true:
            wait {@discord-interval} seconds
            broadcast {_discord-broadcast::*}
            if {_stop} is true:
                stop

# ──────────────────────────────────────────────────────
#  Stop loops on script unload (prevents ghost tasks)
# ──────────────────────────────────────────────────────
on script unload:
    set {_store} to 0
    stop
    set {_discord} to 0
    stop


# ──────────────────────────────────────────────────────
#  Manual trigger command (optional)
# ──────────────────────────────────────────────────────
command /announcement <text>:
    permission: announcements.use
    usage: /announcement <store|discord>
    trigger:
        {_type} := arg-1 lowered
        if {_type} is "store":
            broadcast {_store-broadcast::*}
        else if {_type} is "discord":
            broadcast {_discord-broadcast::*}
        else:
            send "{@prefix} &cUsage: /announcement <store|discord>" to player


# ──────────────────────────────────────────────────────
#  Message content
# ──────────────────────────────────────────────────────
_store-broadcast::
    - ""
    - "&b&lStore &8&l▪ &fThanks for supporting our server!"
    - ""
    - "&#8CC0CCHey there! Are you encoying your time on the server?"
    - "&#8CC0CCCheck out our &fstore&#8CC0CC! Your purchases allow us to continue"
    - "&#8CC0CCto provide you with the &fbest possible experience&#8CC0CC!"
    - ""
    - "             &b→ store.nebulithmc.net ←"
    - ""

_discord-broadcast::
    - ""
    - "&#7187D6&lDiscord &8&l▪ &fJoin Our Discord Community!"
    - ""
    - "&#96A4D3Hey there! Are you encoying your time on the server?"
    - "&#96A4D3Become more engaged with our &fcommunity&#96A4D3,"
    - "&#96A4D3by joing our discord server!"
    - ""
    - "          &#7187D6→ discord.gg/nebulithmc ←"
    - ""