protected override void Init() { TopSumsActions = new PagedDialogActions(ID, (byte)Area.TopSums); TopSumsSettings = PagedUIDialogSettingsBase <PagedUIDialogSettings> .ReadFromFile(Path.Combine(PluginDirectory, "TopRecordsTemplate.xml")); Context.RPCClient.Callbacks.PlayerChat += Callbacks_PlayerChat; }
protected override void Init() { SendToAllLogins(); GuestListSettings = PagedUIDialogSettingsBase <PagedUIDialogSettings> .ReadFromFile(Path.Combine(PluginDirectory, "GuestListUITemplate.xml")); GuestListActions = new PagedDialogActions(ID, (byte)Area.GuestListArea); IgnoreListSettings = PagedUIDialogSettingsBase <PagedUIDialogSettings> .ReadFromFile(Path.Combine(PluginDirectory, "IgnoreListUITemplate.xml")); IgnoreListActions = new PagedDialogActions(ID, (byte)Area.IgnoreListArea); BanListSettings = PagedUIDialogSettingsBase <PagedUIDialogSettings> .ReadFromFile(Path.Combine(PluginDirectory, "BanListUITemplate.xml")); BanListActions = new PagedDialogActions(ID, (byte)Area.BanListArea); BlackListSettings = PagedUIDialogSettingsBase <PagedUIDialogSettings> .ReadFromFile(Path.Combine(PluginDirectory, "BlackListUITemplate.xml")); BlackListActions = new PagedDialogActions(ID, (byte)Area.BlackListArea); LivePlayerSettings = LivePlayerUIDialogSettings.ReadFromFile(Path.Combine(PluginDirectory, "LivePlayerUITemplate.xml")); LivePlayerActions = new PagedDialogActions(ID, (byte)Area.LivePlayersArea); Context.RPCClient.Callbacks.PlayerConnect += Callbacks_PlayerConnect; }