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.

Solved How do I set a server without keys

Discussion in 'Skript' started by FabricioSouza, Apr 1, 2018.

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

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    I do not know if you can set a server without the keys, for example: set {server.egg wars} to the location of the player. But I wanted to: set "EggWars" to the player's location.
    --- Double Post Merged, Apr 1, 2018, Original Post Date: Apr 1, 2018 ---
    Someone help me.
     
  2. KroterPvP

    KroterPvP Active Member

    Joined:
    Apr 10, 2017
    Messages:
    178
    Likes Received:
    7
    If you are trying to set a variable to the location of player, can be either {server.eggwars} or {server.EggWars}. You can only set variables to things so text in plain "EggWars" can't be set to anything.

    Also, try using {server::eggwars} instead of {server.eggwars}. It will allow you to loop that variable and all the values it has.
     
  3. FabricioSouza

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    [QUOTE = "KroterPvP, post: 28247, member: 2206"] Se você está tentando definir uma variável para o local do player, pode ser {server.eggwars} ou {server.EggWars}. Você só pode definir variáveis para coisas, então o texto em "EggWars" simples não pode ser definido para nada.

    Além disso, tente usar {server :: eggwars} em vez de {server.eggwars}. Ele permitirá que você faça o loop dessa variável e de todos os valores dela. [/ QUOTE]

    Could you name one for me?
     
  4. KroterPvP

    KroterPvP Active Member

    Joined:
    Apr 10, 2017
    Messages:
    178
    Likes Received:
    7
    set {server::location::eggwars} to player's location
     
  5. FabricioSouza

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    Are you sure you can not do it: set "EggWars" to location of player
     
  6. KroterPvP

    KroterPvP Active Member

    Joined:
    Apr 10, 2017
    Messages:
    178
    Likes Received:
    7
    Try doing it, it won't be set to anything because it's not possible. Skript variables must always look like "{var}", not "var"
     
  7. FabricioSouza

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    Since I do not have a way to do this, I forgot to post on this topic a system banning a number of players in one world. For example: I want in the SkyWars lobby between only 100 players and if you have more you will not be able to enter but in the lobby, but only the VIP can enter the lobby still full.
     
  8. KroterPvP

    KroterPvP Active Member

    Joined:
    Apr 10, 2017
    Messages:
    178
    Likes Received:
    7
    Code (Skript):
    1. on connect:
    2.     if number of players in world "WorldName" is more than 99:
    3.         player doesn't have permission "invent.your.own.permission":
    4.             kick player due to "&7The rest of slots are only for VIPS!"
    --- Double Post Merged, Apr 1, 2018, Original Post Date: Apr 1, 2018 ---
    The main question of the thread has been solved. Please, mark it as "solved"
     
  9. FabricioSouza

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    This will cause the expelled player to be random.
     
  10. KroterPvP

    KroterPvP Active Member

    Joined:
    Apr 10, 2017
    Messages:
    178
    Likes Received:
    7
    *The player is the one who initialized the event in this case, the one who connects. If two players connect at the same time, the two will be processed so don't worry.
     
  11. FabricioSouza

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    [QUOTE = "KroterPvP, post: 28256, membro: 2206"] * O jogador é quem inicializou o evento neste caso, aquele que se conecta. Se dois jogadores se conectarem ao mesmo tempo, os dois serão processados, então não se preocupe. [/ QUOTE]

    OK thank you.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...