public void Execute(IRocketPlayer caller, string[] command) { UnturnedPlayer uCaller = (UnturnedPlayer)caller; //uCaller.Player.channel.send("askBrowserRequest", uCaller.CSteamID, ESteamPacket.UPDATE_RELIABLE_BUFFER, desc, url); WebsitePlugin.OpenUrl(uCaller, url, desc); }
protected override void Load() { Instance = this; Logger.Log("WebsiteCommand has loaded!"); if (Configuration != null && Configuration.Instance.WebsiteCommands.Count != 0) { foreach (var command in Configuration.Instance.WebsiteCommands) { RocketWebsiteCommand cmd = new RocketWebsiteCommand(command.CommandName, command.Desc, command.Url, command.Help); R.Commands.Register(cmd); } } }