Hi,
I don't understand how simplePause works.
In a function of my php I have :
but my message is displayed instantly. Maybe I'm missing something, or maybe I didn't understand what the simplePause does, but it seemed to me that it delays the next notification. Any ideas?
I don't understand how simplePause works.
In a function of my php I have :
Code: Select all
self::notifyAllPlayers( 'simplePause', '', ['time' => 6000] );
// wait 6 seconds to display the next notification
self::notifyAllPlayers( 'message', $message, [] );