@@ -18,7 +18,7 @@ public sealed partial class Plugin : BasePlugin
18
18
19
19
public override string ModuleName => $ "K4-Zenith | { MODULE_ID } ";
20
20
public override string ModuleAuthor => "K4ryuu @ KitsuneLab" ;
21
- public override string ModuleVersion => "1.1.10 " ;
21
+ public override string ModuleVersion => "1.1.11 " ;
22
22
23
23
private PlayerCapability < IPlayerServices > ? _playerServicesCapability ;
24
24
private PluginCapability < IModuleServices > ? _moduleServicesCapability ;
@@ -127,7 +127,6 @@ public override void OnAllPluginsLoaded(bool hotReload)
127
127
{
128
128
_zenithEvents . OnZenithCoreUnload += OnZenithCoreUnload ;
129
129
_zenithEvents . OnZenithChatMessage += OnZenithChatMessage ;
130
- _zenithEvents . OnZenithPlayerLoaded += OnZenithPlayerLoaded ;
131
130
}
132
131
else
133
132
{
@@ -178,26 +177,6 @@ public override void OnAllPluginsLoaded(bool hotReload)
178
177
Logger . LogInformation ( "Zenith {0} module successfully registered." , MODULE_ID ) ;
179
178
}
180
179
181
- private void OnZenithPlayerLoaded ( CCSPlayerController player )
182
- {
183
- var zenithPlayer = GetZenithPlayer ( player ) ;
184
- if ( zenithPlayer == null )
185
- return ;
186
-
187
- var playerData = _playerCache [ zenithPlayer . SteamID ] ;
188
-
189
- IPlayerServices ? playerServices = GetZenithPlayer ( player ) ;
190
- if ( playerData . Punishments . Any ( p => p . Type == PunishmentType . Mute && p . ExpiresAt . HasValue && p . ExpiresAt . Value . GetDateTime ( ) > DateTime . Now ) )
191
- playerServices ? . SetMute ( true , ActionPriority . High ) ;
192
-
193
- if ( playerData . Punishments . Any ( p => p . Type == PunishmentType . Gag && p . ExpiresAt . HasValue && p . ExpiresAt . Value . GetDateTime ( ) > DateTime . Now ) )
194
- playerServices ? . SetGag ( true , ActionPriority . High ) ;
195
-
196
- _playerCache [ zenithPlayer . SteamID ] = playerData ;
197
- _disconnectedPlayers . RemoveAll ( p => p . SteamId == zenithPlayer . SteamID ) ;
198
-
199
- }
200
-
201
180
private void OnZenithCoreUnload ( bool hotReload )
202
181
{
203
182
if ( hotReload )
0 commit comments