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 out 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.

Need help with commands!

Discussion in 'Skript' started by Shawn11564, Feb 28, 2017.

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

    Shawn11564 New Member

    Joined:
    Feb 28, 2017
    Messages:
    7
    Likes Received:
    1
    Skript Version: Skript 2.1.1
    Skript Author: njol
    Minecraft Version: 1.8
    ---
    Full Code:
    None yet

    So, I am trying to make a command with Skript that when someone types /spawn it instead executes /mvs as that player.
    Ex. Player types /spawn, the script turns that into /mvs, the player is teleported to the multiverse spawn.
    I tried having it setup so that the /spawn command would do this: execute command as player /mvs
    But that didnt work. Any help would be great!
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Isn't this?
    Code (Skript):
    1. command /spawn:
    2.     trigger:
    3.         make player execute command "/mvs"
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    I hope so! I will try this when I get home, thank you so much!
     
    • Like Like x 1
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Try this.
    Code (Skript):
    1. on command:
    2.     if command is "spawn"
    3.         cancel event
    4.             make player execute command "/mvs"
    5.  
    Or, Permission Problem?
    Code (Skript):
    1. on command:
    2.     if command is "spawn":
    3.         cancel event
    4.         make console execute command "/mvs %executor%"
    5.  
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Would on command require a skript addon? Thanks for the help!
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
Thread Status:
Not open for further replies.

Share This Page

Loading...