private void Init() { Instance = this; InitConfig(); RegisterCommands(); RegisterPermissions(); RegisteredPerms = GetPluginPerms(); if (!CheckLastAttack) { Unsubscribe(nameof(OnEntityDeath)); Unsubscribe(nameof(OnServerSave)); } }
private void Init() { Instance = this; InitConfig(); RegisterCommands(); RegisterPermissions(); if (!CheckLastAttack) { Unsubscribe(nameof(OnEntityDeath)); Unsubscribe(nameof(OnServerSave)); } if (!DestroyOnDisconnect) { Unsubscribe(nameof(OnPlayerDisconnected)); } }
private void Unload() { Instance = null; DestroyAll <BGradePlayer>(); BGradePlayer.Players.Clear(); }