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

Update MOTD

Discussion in 'Development' started by VlaD3n, Dec 10, 2020.

  1. VlaD3n

    VlaD3n Silverfish

    Messages:
    15
    Hi, how can I make the motd update while the server is running?
    (It is necessary that the main menu is updated or on the server itself)
    UPD: The name is updated in the main menu, but during the game on the server there is no
     
    Last edited: Dec 10, 2020
  2. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    Hey, you can update it anytime using the following code.
    PHP:
    Server::getInstance()->getNetwork()->setName("My server");
    If you're on the main file,
    PHP:
    $this->getServer()>getNetwork()->setName("My server");
     
  3. VlaD3n

    VlaD3n Silverfish

    Messages:
    15
    Thanks!
     
  4. VlaD3n

    VlaD3n Silverfish

    Messages:
    15
    The name is updated in the main menu, but during the game on the server there is no
     
  5. Primus

    Primus Zombie Pigman

    Messages:
    749
    Screenshot?
     
  6. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    What do you mean "during the game"?
     
  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.