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.

A command that runs another command.

Discussion in 'Skript' started by Violt, Mar 24, 2020.

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

    Violt New Member

    Joined:
    Feb 26, 2020
    Messages:
    8
    Likes Received:
    0
    I am working on a little command but i can't figure it out.
    When i run it the game will say unknown command
    Here's the skript:
    Code (Text):
    1. command "/hub":
    2.     trigger:
    3.         make player execute command "/server lobby"
    I hope one of you can help me.
    I couldn't figure out how Skungee worked so i decided to do this.

    Kind Regards,

    Violt
     
  2. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    Remove the quotes (") and it might work
     
  3. ZeyKra_

    ZeyKra_ Active Member

    Joined:
    Dec 12, 2019
    Messages:
    109
    Likes Received:
    2
    If you run skungee on your network i think you can use this code (if work for me)

    Code (Text):
    1. command /lobby:
    2.     trigger:
    3.         send bungeecord player to bungeecord server "lobby"    
     
  4. oHeckGage

    oHeckGage Active Member

    Joined:
    Mar 24, 2020
    Messages:
    106
    Likes Received:
    5
    Code (Text):
    1. command "/hub":
    2.     trigger:
    3.         make player execute command "/server lobby"
    Maybe try

    Code (Text):
    1. command /hub:
    2.     trigger:
    3.         make player execute command "/server lobby"
     
  5. Violt

    Violt New Member

    Joined:
    Feb 26, 2020
    Messages:
    8
    Likes Received:
    0
    still the same...
    --- Double Post Merged, Mar 24, 2020, Original Post Date: Mar 24, 2020 ---
    i can't figure it out how to install Skungee correctly.
    And in what Skungee script folder it should be put in. in the Bungeecord Plugins folder or of the server?
     
  6. ZeyKra_

    ZeyKra_ Active Member

    Joined:
    Dec 12, 2019
    Messages:
    109
    Likes Received:
    2
    if you put a script in skungee script folder this script will be copied on all of your server linked together with skungee

    also what version of skungee are you using ? bc 1.0.13 doesn't work with 1.8.8 server
     
  7. oHeckGage

    oHeckGage Active Member

    Joined:
    Mar 24, 2020
    Messages:
    106
    Likes Received:
    5
    Can I see the errors?
     
  8. Violt

    Violt New Member

    Joined:
    Feb 26, 2020
    Messages:
    8
    Likes Received:
    0
    Thanks, i'll try it now. I am using the latest version of Skungee and the server is 1.15.2
    --- Double Post Merged, Mar 25, 2020, Original Post Date: Mar 25, 2020 ---
    Yep it works with Skungee!
    --- Double Post Merged, Mar 25, 2020 ---
    How would i add a delay after a command is being executed.
    I found something on the forums and wiki and it was like this:
    Code (Text):
    1. command /lobby:
    2.     trigger:
    3.         wait 5 seconds
    4.         send bungeecord player to bungeecord server "lobby"  
    But it doesn't seem to wait 5 seconds before the player connects to the lobby.
     
  9. A248

    A248 Member

    Joined:
    Jan 31, 2017
    Messages:
    43
    Likes Received:
    3
    The reason executing a command (make player execute command) the normal way doesn't work is because commands are different on Spigot and Bungee.

    make player execute command
    will execute a Spigot/Bukkit command. However, /server is a Bungee command. Players can run Bungee commands because BungeeCord will intercept the command packet and run the command logic itself. Yet, when you use make player execute command, it runs the command directly on Spigot/Bukkit. This means that BungeeCord never sees the command, so /server can't run.
     
  10. ZeyKra_

    ZeyKra_ Active Member

    Joined:
    Dec 12, 2019
    Messages:
    109
    Likes Received:
    2
    It should
     
Thread Status:
Not open for further replies.

Share This Page

Loading...