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

Pause Plugin

Discussion in 'Facepalm' started by thelucyclub, Sep 13, 2017.

  1. thelucyclub

    thelucyclub Spider Jockey

    Messages:
    28
    GitHub:
    thelucyclub
    So I want when a player joins, they get a message. Then after 1 second they get another message. I'm familiar with the sleep($int); function, but it seems to pause the whole server. Any way to get it to just pause the one plugin?
    PHP:
    sleep(2);
    $player->sendMessage("Message appears after two seconds...");
    sleep(6);
    $player->sendMessage("It's been six seconds!");
     
    Last edited: Sep 14, 2017
  2. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    Tasks or Loops
     
  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.