public static Register ( string command, AccessLevel access, CommandEventHandler handler ) : void | ||
command | string | |
access | AccessLevel | |
handler | CommandEventHandler | |
Результат | void |
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)); } }
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); } }
public static void Initialize() { CommandHandlers.Register("StaffSextant", AccessLevel.Counselor, new CommandEventHandler(SS_OnCommand)); CommandSystem.Register("SS", AccessLevel.Counselor, new CommandEventHandler(SS_OnCommand)); }
public static void Initialize() { //Register( string command, AccessLevel access, CommandEventHandler handler ) CommandHandlers.Register("Slap", AccessLevel.Counselor, new CommandEventHandler(Slap_OnCommand)); }