Register() public static method

public static Register ( string command, AccessLevel access, CommandEventHandler handler ) : void
command string
access AccessLevel
handler CommandEventHandler
return void
Esempio n. 1
0
        private static int SpeechHueOverride = -1;         // Set to -1 for random hue, Set to a hue # to use that hue #

        public static void Initialize()
        {
            CommandHandlers.Register("Say", AccessLevel.Counselor, new CommandEventHandler(Say_OnCommand));
            if (SeperateCommands)
            {
                CommandHandlers.Register("ItemSay", AccessLevel.Counselor, new CommandEventHandler(ItemSay_OnCommand));
            }
        }
Esempio n. 2
0
        private static int SpeechHueOverride = 0x3B2; // Set to -1 for random hue, Set to a hue # to use that hue #

        public static void Initialize()
        {
            CommandHandlers.Register("Say", AccessLevel.Counselor, Say_OnCommand);
            CommandHandlers.Register("Wop", AccessLevel.Player, Wop_OnCommand);
            if (SeperateCommands)
            {
                CommandHandlers.Register("ItemSay", AccessLevel.Counselor, ItemSay_OnCommand);
            }
        }
Esempio n. 3
0
 public static void Initialize()
 {
     CommandHandlers.Register("StaffSextant", AccessLevel.Counselor, new CommandEventHandler(SS_OnCommand));
     CommandSystem.Register("SS", AccessLevel.Counselor, new CommandEventHandler(SS_OnCommand));
 }
Esempio n. 4
0
 public static void Initialize()
 {
     //Register( string command, AccessLevel access, CommandEventHandler handler )
     CommandHandlers.Register("Slap", AccessLevel.Counselor, new CommandEventHandler(Slap_OnCommand));
 }