File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ protected override async UniTask OnExecuteAsync()
3131 throw new CommandWrongUsageException ( Context ) ;
3232 }
3333
34- var displayType = DisplayType . Global ;
3534 var displayTypeString = Context . Parameters [ 0 ] ;
35+
36+ DisplayType displayType ;
3637 if ( displayTypeString . Equals ( "group" , StringComparison . InvariantCultureIgnoreCase ) )
3738 {
3839 displayType = DisplayType . Group ;
Original file line number Diff line number Diff line change 11using Cysharp . Threading . Tasks ;
22using EvolutionPlugins . OpenDeathMessages . API ;
33using Microsoft . Extensions . Configuration ;
4+ using Microsoft . Extensions . DependencyInjection ;
45using OpenMod . API . Ioc ;
56using OpenMod . UnityEngine . Extensions ;
67using OpenMod . Unturned . Players ;
1314
1415namespace EvolutionPlugins . OpenDeathMessages . Services
1516{
16- [ PluginServiceImplementation ]
17+ [ PluginServiceImplementation ( Lifetime = ServiceLifetime . Singleton ) ]
1718 public class PlayerMessager : IPlayerMessager
1819 {
1920 private readonly DisplayType m_DisplayType ;
You can’t perform that action at this time.
0 commit comments