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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Multiple Lobby System

Discussion in 'Requests' started by FabricioSouza, Mar 31, 2018.

  1. FabricioSouza

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    Well I was wondering if there is any way to have a multiple Lobby without having to put several maps of the Lobby. I want the same as Hypixel that when someone presses on the nether star opens a menu with several lobbies and I want to do the same thing. If so, please tell me the dependencies.

    Somebody help me, please.
     
  2. LimeGlass

    VIP Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    621
    Likes Received:
    436
    Medals:
    Code (Skript):
    1. on connect:
    2.     set {_players} to 0
    3.     set {_server} to "hub-1"
    4.     loop "hub-1", "hub-2" and "hub-3":
    5.         if size of all bungeecord players on server loop-string > {_players}:
    6.             set {_server} to loop-string
    7.             set {_players} to size of all bungeecord players on server loop-string
    8.     bungeecord server of "%uuid of player%" is not {_server}
    9.     connect  bungeecord player "%uuid of player%" to bungeecord server {_server}
    10.  
    Using Skungee https://forums.skunity.com/resources/skungee-1-bungeecord-addon-for-skript.87/

    May need to change/modify the event to on join I don't know how Skript handles players within the on connect event.
     
  3. FabricioSouza

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    [QUOTE = "LimeGlass, post: 28319, membro: 15"] [CODE = SKRIPT] ao conectar:
    set {_players} para 0
    set {_server} para "hub-1"
    loop "hub-1", "hub-2" e "hub-3":
    se tamanho de todos os jogadores de bungeecord no servidor loop-string> {_players}:
    set {_server} para o loop string
    set {_players} para o tamanho de todos os jogadores do bungeecord no servidor loop-string
    Servidor de bungeecord de "% uuid do player%" não é {_server}
    conecte o bungeecord player "% uuid do player%" ao bungeecord server {_server}
    [/CÓDIGO]
    Usando o Skungee https://forums.skunity.com/resources/skungee-1-bungeecord-addon-for-skript.87/

    Pode ser necessário alterar / modificar o evento para participar . Não sei como o Skript manipula os jogadores no evento on connect. [/ QUOTE]

    My server is not bungeecord. Does it have another way. If you have not you could make a plugin for me multilobby and if you do let me I can change the messages.
     
  4. LimeGlass

    VIP Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    621
    Likes Received:
    436
    Medals:
    Uhhh you don't really need the mutli thing then. The only reason servers like Hypixel do that is because a single server can't handle thousands of players at once, so they break it into multiple lobbies.
     
  5. FabricioSouza

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    I need this for my server it is filling and many complain because of the lag. Please help me.
    --- Double Post Merged, Apr 3, 2018, Original Post Date: Apr 3, 2018 ---

    In the line: 'loop-1', 'hub-2' and 'hub-3': 'why do you have hub-2 and hub-3?
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    You can’t really do a lobby system without bungee. So you’re going to have to make a bungee network if you want a lobby
     
  7. LimeGlass

    VIP Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    621
    Likes Received:
    436
    Medals:
    Creating multiple lobbies on the same server won't reduce lag... You need to create a bungeecord network as said above.
     
    • Agree Agree x 1
  8. FabricioSouza

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    Man, I put all these codes in and it did not work. I also put the addon and it did not work too.
     
  9. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    It won't work, because you don't have a bungee network
    The code lime wrote for you is a sample of a skript to run on a bungee network
     
  10. FabricioSouza

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    [QUOTE = "ShaneBee, post: 28374, member: 5254"] Não vai funcionar, porque você não tem uma rede de bungee jump
    O código que o limão escreveu para você é uma amostra de um skript para rodar em uma rede de bungee [/ QUOTE]

    I switched to the bungee, but it did not work out.
     
  11. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    so you have a bungee proxy and how many servers?
     
  12. FabricioSouza

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    For now, just one.
     
  13. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    how many lobby's do you want?
     
  14. FabricioSouza

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    [QUOTE = "ShaneBee, post: 28378, member: 5254"] quantos lobby você quer? [/ QUOTE]

    I only have one Sky Wars lobby and I wanted to do a multiple bungee in it.
     
  15. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    so ill ask the same question again... how many lobbys do you want?
     
  16. FabricioSouza

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    Seven Lobbies.
     
  17. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    so you want 7 lobbies that all link to 1 server?
     
  18. FabricioSouza

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    Yes.
     
  19. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    WHY? That makes absolutely no sense what so ever.
    I do not think you understand the point of a lobby or bungee system.
    You are not supposed to have more lobbies than servers

    Think of this like a hotel

    A hotel has a lobby, that leads to say, 100 rooms...
    You wouldn't have a hotel that has 7 lobbies with only 1 room
     
    • Funny Funny x 1
  20. FabricioSouza

    FabricioSouza Well-Known Member

    Joined:
    Mar 15, 2018
    Messages:
    267
    Likes Received:
    3
    [QUOTE = "ShaneBee, postagem: 28387, membro: 5254"] POR QUÊ? Isso não faz sentido algum.
    Eu não acho que você entende o ponto de um sistema de lobby ou bungee.
    Você não deveria ter mais lobbies do que servidores

    Pense nisso como um hotel
    [QUOTE = "ShaneBee, postagem: 28387, membro: 5254"] POR QUÊ? Isso não faz sentido algum.
    Eu não acho que você entende o ponto de um sistema de lobby ou bungee.
    Você não deveria ter mais lobbies do que servidores

    Pense nisso como um hotel

    Um hotel tem um lobby, que leva a dizer, 100 quartos ...
    Você não teria um hotel com 7 lobbies com apenas 1 quarto [/ QUOTE]

    Um hotel tem um lobby, que leva a dizer, 100 quartos ...
    Você não teria um hotel com 7 lobbies com apenas 1 quarto [/ QUOTE]

    Understand, I know you've never entered HyPixel, but on some servers they put that nether star, and when you press on it, a menu of various lobbies will appear and I want to make that system.
     

Share This Page

Loading...