public static void Initialize() { Instance = World.GetCore(typeof(ToolbarCore)) as ToolbarCore ?? new ToolbarCore(); CommandHandlers.Register("Toolbar", AccessLevel.Counselor, Toolbar_OnCommand); EventSink.Login += OnLogin; EventSink.PlayerDeath += OnPlayerDeath; }
public static void Initialize() { ToolbarCore core = World.GetCore(typeof(ToolbarCore)) as ToolbarCore; if (core == null) core = new ToolbarCore(); CommandHandlers.Register("Toolbar", AccessLevel.VIP, Toolbar_OnCommand); EventSink.Login += OnLogin; EventSink.PlayerDeath += OnPlayerDeath; }
public static void Initialize() { ToolbarCore core = World.GetCore(typeof(ToolbarCore)) as ToolbarCore; if (core == null) { core = new ToolbarCore(); } CommandHandlers.Register("Toolbar", AccessLevel.VIP, Toolbar_OnCommand); EventSink.Login += OnLogin; EventSink.PlayerDeath += OnPlayerDeath; }