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

Changing gamemode when joining microbattles

Discussion in 'Help' started by A354-PH, Oct 20, 2018.

  1. A354-PH

    A354-PH Baby Zombie

    Messages:
    186
    GitHub:
    Kizu
    How to change gamemode when joining a microbattle game? Idk the codes
     
  2. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    PHP:
    /** @var Player $player */
    $player->setGamemode(Player::SURVIVAL);
     
  3. A354-PH

    A354-PH Baby Zombie

    Messages:
    186
    GitHub:
    Kizu
    Plz make it a Main.php
     
  4. Palente

    Palente Slime

    Messages:
    75
    GitHub:
    palente
    We can't make it in a main we don't know what plugins you use.
    Kyd gived the code for change the gamemode.
    Edit the plugin of microbattles and add the code
     
    xXNiceAssassinlo YT likes this.
  5. Kkora

    Kkora Baby Zombie

    Messages:
    189
    GitHub:
    shisui203
    Send me the Main.php code, I will figure that.
     
  6. A354-PH

    A354-PH Baby Zombie

    Messages:
    186
    GitHub:
    Kizu
  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.