Skip to content

Commit 2fcc633

Browse files
author
尧杰 曾
committed
remove
1 parent 828791e commit 2fcc633

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CDK/Main.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class Main : RocketPlugin<Config>
2727
protected override void Load()
2828
{
2929
Instance = this;
30-
CheckUpdate();
30+
//CheckUpdate();
3131
Database = new DatabaseManager();
3232
U.Events.OnPlayerConnected += PlayerConnect;
3333
Rocket.Core.Logging.Logger.Log("CDK Plugin loaded");
@@ -69,8 +69,9 @@ private void PlayerConnect(UnturnedPlayer player)
6969

7070
private void CheckUpdate()
7171
{
72+
string dlstring = "https://api.github.com/repos/zeng-github01/CDKey-CodeReward/releases/latest";
7273
WebClient webClient = new WebClient();
73-
string jsonstring = webClient.DownloadString("https://api.github.com/repos/zeng-github01/CDKey-CodeReward/releases/latest");
74+
string jsonstring = webClient.DownloadString(dlstring);
7475
var json = JObject.Parse(jsonstring);
7576
Version version = new Version(json["tag_name"].ToString());
7677
Version crv = Assembly.GetName().Version;

0 commit comments

Comments
 (0)