class="token punctuation">)</span></div><p class="paragraph">Registers an event listener with suspending functions. Does exactly the same thing as PluginManager.registerEvents but makes suspend functions possible. Example:</p><p class="paragraph">class MyPlayerJoinListener : Listener{     @EventHandler     suspend fun onPlayerJoinEvent(event: PlayerJoinEvent) {</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">}</code></pre><span class="top-right-position"><span class="copy-