How do i make a wait statement

Discussion in 'Plugin Development' started by Chintzi, Nov 16, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Chintzi

    So im wanting to do something but i don't want it doing it all at once so i was wondering if anyone knew how to make delay? not a cool down but a delay
    example:

    Code:java
    1. player.sendMessage("Hey how are you");
    2. ( Then some kinda wait statement with a selected time)
    3. player.sendMessage("Oh hi");
     
  2. Offline

    AzureDev

  3. Offline

    CubieX

    Better use
    Code:
    runTaskLater
    instead of scheduleSyncDelayedTask, because the latter is deprecated.
    It works just like the code example of AzureDev.
     
Thread Status:
Not open for further replies.

Share This Page