Permalink
Browse files

Update 3.0.1

Added Global Announcement toggle option to configuration
Bug fixes and improvements
  • Loading branch information...
Teyhota6 committed Apr 7, 2018
1 parent e89d71a commit d461234c886f68aee3017f58a295f02d5e7ebf94
Showing with 7 additions and 4 deletions.
  1. +4 −3 Commands/Command_Vote.cs
  2. +1 −1 Plugin/VoteRewardsPlugin.cs
  3. +2 −0 Properties/AssemblyInfo.cs
View
@@ -4,6 +4,7 @@
using Rocket.Unturned.Chat;
using Rocket.API;
using SDG.Unturned;
using Steamworks;
namespace Teyhota.VoteRewards.Commands
{
@@ -26,11 +27,11 @@ public void Execute(IRocketPlayer caller, string[] command)
UnturnedPlayer player = (UnturnedPlayer)caller;
string url = Plugin.VoteRewardsPlugin.Instance.Configuration.Instance.VotePageURL;
if (command.Length == 0)
try
{
player.Player.askBrowserRequest(player.CSteamID, Plugin.VoteRewardsPlugin.Instance.Translate("vote_page_msg", Provider.serverName), url);
SteamFriends.ActivateGameOverlayToWebPage(url);
}
else
catch
{
UnturnedChat.Say(caller, Plugin.VoteRewardsPlugin.Instance.Translate("vote_page_msg", Provider.serverName));
Process.Start(url);
@@ -14,7 +14,7 @@ public class VoteRewardsPlugin : RocketPlugin<VoteRewardsConfig>
{
public static string PluginName = "VoteRewards";
public static string PluginVersion = "3.0.1";
public static string BuildVersion = "38";
public static string BuildVersion = "40";
public static string RocketVersion = "4.9.3.0";
public static string UnturnedVersion = "3.23.8.0";
public static string ThisDirectory = System.IO.Directory.GetCurrentDirectory() + @"\Plugins\VoteRewards\";
@@ -1,4 +1,5 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("VoteRewards")]
@@ -13,3 +14,4 @@
[assembly: Guid("e62d7463-577c-418a-90bd-ec9f9fec4077")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
[assembly: InternalsVisibleTo("Assembly-CSharp-firstpass")]

0 comments on commit d461234

Please sign in to comment.