1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

SkyWars Kit...Help Me...

Discussion in 'Development' started by KeanuR1140, May 11, 2020.

  1. KeanuR1140

    KeanuR1140 Spider

    Messages:
    11
    GitHub:
    yoloxd1140
    Hi...Help Me How To Make Kit Selector.....Example....When I Join SkyWars And Select Kit.....When Start The Kit Will Given To Me....How To Do That?? Help Me
     
  2. I Am ScRay

    I Am ScRay Silverfish

    Messages:
    16
    GitHub:
    iamscray
    I guess, you have some of kind of function called when a player joins the SkyWars arena. You may implement your forms in some separate classes that will be shown to players in the function mentioned before. When player chooses the kit, store its name in some array, e.g. [name => kit name].

    Also, I suggest that you have a function that starts the game. When it’s called, use “foreach” to go through players’ array and access your kits’ array, giving each player his kit based on its name.
     
    Emirhan Akpınar likes this.
  3. KeanuR1140

    KeanuR1140 Spider

    Messages:
    11
    GitHub:
    yoloxd1140
    Pls...give me the example code
     
  4. Diduhless

    Diduhless Baby Zombie

    Messages:
    199
    GitHub:
    Diduhless
    Do something by yourself
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.