Exemplo n.º 1
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;
		}
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }