• 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

SandyVerse

Active Member
Mar 19, 2017
51
0
0
33
Using this
code_language.skript:
#This skript is made by DerpyBadger, feel free to change the Messages/Colours. Thanks for downloading! Make sure to leave a review ;) <3 xo

command /sc <text>:
    usage: &cIncorrect usage. Try, /sc [Message]
    permission: skript.staffchat
    permission message: &cYou do not have access to this command.
    executable by: player and console
    aliases: /ac
    trigger:
        loop all players:
            loop-player has permission "message.sc":
                command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
                send "&8[&4Staff&8] &b%player% &8» &3%arg%" to loop-player

How would I have /ac as an alias? (When I do /ac, it brings up the essentials variant)
 
Skript cant change other plugins commands, this is something very basic and told in the skript docs.

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

Skript is not suitable for creating aliases of other plugins' commands, only for creating completely new commands

But, you can make this:

code_language.skript:
on command /ac:
  make player execute "/sc"
 
Try this:
code_language.skript:
[LIST=1]
[*]command /sc <text>:
[*]    usage: &cIncorrect usage. Try, /sc [Message]
[*]    permission: skript.staffchat
[*]    permission message: &cYou do not have access to this command.
[*]    executable by: player and console
[*]    aliases: ac
[*]    trigger:

[*]        loop all players:
[*]            loop-player has permission "message.sc":
[*]                command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
[*]                send "&8[&4Staff&8] &b%player% &8» &3%arg%" to loop-player
[/LIST]

Change /ac -> ac, don't tested.
 
Status
Not open for further replies.