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;
		}
Beispiel #2
0
        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;
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
        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;
        }