public override void Register() { // Proper way of registering a class with multiple interfaces. Pro079Ultimate ultimate = new Pro079Ultimate(this); AddEventHandlers(ultimate); Pro079.Manager.RegisterUltimate(ultimate); }
public override void OnEnabled() { base.OnEnabled(); // This is how you register the command Pro079.Manager.RegisterCommand(new Pro079Command(this)); // This is how you can handle Ultimates that contain event handlers Ultimate = new Pro079Ultimate(this); Exiled.Events.Handlers.Server.WaitingForPlayers += Ultimate.OnWaitingForPlayers; // This is how you register the ultimate Pro079.Manager.RegisterUltimate(Ultimate); }