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.

Staff Chat aliases

Discussion in 'Skript' started by SandyVerse, May 20, 2017.

Thread Status:
Not open for further replies.
  1. SandyVerse

    SandyVerse Well-Known Member

    Joined:
    Mar 19, 2017
    Messages:
    51
    Likes Received:
    0
    Using this
    Code (Skript):
    1. #This skript is made by DerpyBadger, feel free to change the Messages/Colours. Thanks for downloading! Make sure to leave a review ;) <3 xo
    2.  
    3. command /sc <text>:
    4.     usage: &cIncorrect usage. Try, /sc [Message]
    5.     permission: skript.staffchat
    6.     permission message: &cYou do not have access to this command.
    7.     executable by: player and console
    8.     aliases: /ac
    9.     trigger:
    10.         loop all players:
    11.             loop-player has permission "message.sc":
    12.                 command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
    13.                 send "&8[&4Staff&8] &b%player% &8» &3%arg%" to loop-player
    14.  
    How would I have /ac as an alias? (When I do /ac, it brings up the essentials variant)
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Skript cant change other plugins commands, this is something very basic and told in the skript docs.

    http://njol.ch/projects/skript/doc/commands/

    But, you can make this:

    Code (Skript):
    1. on command /ac:
    2.   make player execute "/sc"
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Try this:
    Code (Skript):
    1.  
    2. [LIST=1]
    3. [*]command /sc <text>:
    4. [*]    usage: &cIncorrect usage. Try, /sc [Message]
    5. [*]    permission: skript.staffchat
    6. [*]    permission message: &cYou do not have access to this command.
    7. [*]    executable by: player and console
    8. [*]    aliases: ac
    9. [*]    trigger:
    10.  
    11. [*]        loop all players:
    12. [*]            loop-player has permission "message.sc":
    13. [*]                command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
    14. [*]                send "&8[&4Staff&8] &b%player% &8» &3%arg%" to loop-player
    15. [/LIST]
    16.  
    17.  
    Change /ac -> ac, don't tested.
     
Thread Status:
Not open for further replies.
Loading...