1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Custom Broadcast.

Discussion in 'Skript' started by TheCringleYT, Oct 6, 2019.

  1. TheCringleYT

    TheCringleYT Well-Known Member

    Joined:
    Sep 29, 2019
    Messages:
    53
    Likes Received:
    1
    Hey everyone,

    I am planning out a server and I can't figure out how to make something so when I broadcast instead of saying [Broadcast] it says something like [FireUHC Announcement].

    Answers would be greatly appreciated!

    - TheCringleYT
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    this is pretty basic:
    Code (Skript):
    1. command /broadcast <text>:
    2.     trigger:
    3.         broadcast "[whatever the heck you want here] %arg-1%"
     
  3. TheCringleYT

    TheCringleYT Well-Known Member

    Joined:
    Sep 29, 2019
    Messages:
    53
    Likes Received:
    1
    You like are my servant telling me all the Mathematics answers to my GEESE.
     
  4. GamingHard

    GamingHard Member

    Joined:
    Oct 5, 2019
    Messages:
    17
    Likes Received:
    0
    Here is an improved version with options:
    Code (Text):
    1. options:
    2.     prefix: &8[&4FireUHC Announcement&8]
    3.     permission: fireuhc.alert
    4.    
    5.  
    6. command /alert [<text>]:
    7.     permission: {@permission}
    8.     permission message: &cYou do not have permission to execute this command.
    9.     trigger:
    10.         if arg-1 is not set:
    11.             message "&CUsage: &7/alert <Message>"
    12.         else:
    13.             broadcast "{@prefix} &f%arg-1%"
     
Loading...