If player is in a specific server

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

Tom1222322

Member
Feb 5, 2021
19
0
1
23
Hello, I been searching on google but still couldn't find a solution for my problem. What I'm trying to do is check if the player is playing in a specific server such as a hub so if I used command /hub in the hub server it wouldn't just teleport me again. My code:
Code:
command hub:
  trigger:
    if player connect from hub to hub:
      send "u r already in hub"
      else:
        send player to server "hub"
        message "tping to hub"
 
Status
Not open for further replies.