[ 'App\Listeners\ResetInvalidTextureForPlayer', ], 'App\Events\TextureDeleting' => [ 'App\Listeners\TextureRemoved', ], 'App\Events\PluginWasEnabled' => [ 'App\Listeners\CopyPluginAssets', ], 'App\Events\PluginVersionChanged' => [ 'App\Listeners\CopyPluginAssets', ], 'App\Events\PluginBootFailed' => [ 'App\Listeners\NotifyFailedPlugin', ], ]; /** * Register any other events for your application. * * @return void */ public function boot() { parent::boot(); if (option('enable_avatar_cache')) { Event::listen(Events\GetAvatarPreview::class, Listeners\CacheAvatarPreview::class); } if (option('enable_preview_cache')) { Event::listen(Events\GetSkinPreview::class, Listeners\CacheSkinPreview::class); } if (option('enable_notfound_cache')) { Event::subscribe(Listeners\CachePlayerExists::class); } if (option('enable_json_cache')) { Event::subscribe(Listeners\CachePlayerJson::class); } } }