예제 #1
0
        public override void OnDisabled()
        {
            ServerEvent.WaitingForPlayers -= handler.OnWaitingForPlayers;

            PlayerEvent.Dying -= handler.OnPlayerDying;

            MapEvent.ExplodingGrenade -= handler.OnExploding;

            Singleton = null;
            handler   = null;
        }
예제 #2
0
        public override void OnEnabled()
        {
            Singleton = this;
            handler   = new Handler(this);

            ServerEvent.WaitingForPlayers += handler.OnWaitingForPlayers;

            PlayerEvent.Dying += handler.OnPlayerDying;

            MapEvent.ExplodingGrenade += handler.OnExploding;
        }
예제 #3
0
파일: Handler.cs 프로젝트: Michal78900/EFE
 public Handler(EFE plugin) => this.plugin = plugin;