File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments