Unworking Skript

Discussion in 'Spigot Plugin Help' started by xAssassinWolf, Jul 1, 2018.

  1. So the /send ALL <server> is working but the player and current one is not.
    Code (Text):
    command /send [<string>] [<string>]:
        permission: bungee.send
        permission message: {@nopermission}
        usage: /send <All, current OR (player)> <server>
        trigger:
            if arg-1 is player:
                send "{@prefix} &7You can not teleport yourself!"
                stop
            if arg-1 is not set:
                send "{@prefix} &7Usage:"
                send "&6/send ALL <server> &7Sends all players to selected server."
                send "&6/send CURRENT <server> &7Sends the players in your current server to your selected one."
                send "&6/send <player> <server> &7Send the player selected in the argument to a server you have selected."
                stop
            if arg-1 is "all" or "ALL":
                if arg-2 is set:
                    send "{@prefix} &7You have selected &9all&7 players. Now sending them to &6%arg-2%&7." to player
                    wait 2 second
                    loop all players:
                        make console execute command "mvtp %loop-player% %arg-2%"
                        send "{@prefix} &7You have been summoned at &6%arg-2% &7because &9%player% &7sent you here." to loop-player
            if arg-1 is a player:
                if arg-2 is set:
                    send "{@prefix} &7Now sending &9%arg-1% &7to server &6%arg-2%&7." to player
                    wait 2 second
                    make console execute command "mvtp %arg-1% %arg-2%"
                    send "{@prefix} &7You have been sent to &6%arg-2% &7because &9%player% &7sent you here." to arg-1
            if arg-1 is "current" or "CURRENT":
                if arg-2 is set:
                    send "{@prefix} &7Now sending &9all&7 players in your current server to &6%arg-2%&7." to player
                    wait 1 second
                    loop all players in world "%player's world%"
                        make console execute command "mvtp %loop-player% %arg-2%"
                        send "{@prefix} &7You have been sent to &6%arg-2% &7because of an administrator." to loop-player
    Does anyone know how to fix it or what is wrong with it?
    The people in the sk discord did not know.