A command that runs another command.

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

Violt

New Member
Feb 26, 2020
8
0
0
31
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:
command "/hub":
    trigger:
        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
 
If you run skungee on your network i think you can use this code (if work for me)

Code:
command /lobby:
    trigger:
        send bungeecord player to bungeecord server "lobby"
 
Code:
command "/hub":
    trigger:
        make player execute command "/server lobby"

Maybe try

Code:
command /hub:
    trigger:
        make player execute command "/server lobby"
 
Code:
command "/hub":
    trigger:
        make player execute command "/server lobby"

Maybe try

Code:
command /hub:
    trigger:
        make player execute command "/server lobby"
still the same...
[doublepost=1585085895,1585085838][/doublepost]
If you run skungee on your network i think you can use this code (if work for me)

Code:
command /lobby:
    trigger:
        send bungeecord player to bungeecord server "lobby"
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?
 
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
 
still the same...
[doublepost=1585085895,1585085838][/doublepost]
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?
Can I see the errors?
 
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
Thanks, i'll try it now. I am using the latest version of Skungee and the server is 1.15.2
[doublepost=1585137020,1585136857][/doublepost]Yep it works with Skungee!
[doublepost=1585138294][/doublepost]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:
command /lobby:
    trigger:
        wait 5 seconds
        send bungeecord player to bungeecord server "lobby"
But it doesn't seem to wait 5 seconds before the player connects to the lobby.
 
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.
 
It should
Thanks, i'll try it now. I am using the latest version of Skungee and the server is 1.15.2
[doublepost=1585137020,1585136857][/doublepost]Yep it works with Skungee!
[doublepost=1585138294][/doublepost]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:
command /lobby:
    trigger:
        wait 5 seconds
        send bungeecord player to bungeecord server "lobby"
But it doesn't seem to wait 5 seconds before the player connects to the lobby.
 
Status
Not open for further replies.