Wait a certain amount of time before you execute a code ?

Discussion in 'Plugin Development' started by Notorious-Riddler, Jun 27, 2013.

Thread Status:
Not open for further replies.
  1. okay so say for example if i type /chat
    it will do this for example :

    Code:java
    1. player.chat("Hello");
    2.  
    3. //WAIT 10 SECONDS HERE THEN EXECUTE THE CODE BELOW
    4.  
    5. player.chat("Whats Up ?");


    Bump ---

    Please can someone help me ?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 2, 2016
  2. Offline

    danslayerx

    You can use a scheduler or run a new thread, the latter would most likely be harder if you lack knowledge of separate threads sync and async.
     
  3. Offline

    Proeliumm

Thread Status:
Not open for further replies.

Share This Page