Skip to content

Commit

Permalink
UpdateChecker: fix getInstance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NONPLAYT committed Sep 4, 2023
1 parent 6343146 commit ef21992
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.parallel=true

# Plugin properties
group=gq.bxteam
version=2.3
version=2.3.1

# Dependencies
paper_api=1.20.1-R0.1-SNAPSHOT
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/gq/bxteam/ndailyrewards/NDailyRewards.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ public void reload() {
this.load();
}

@SuppressWarnings("deprecation")
public static Optional<String> checkForUpdates() {
final String mcVersion = NDailyRewards.getInstance().getServer().getMinecraftVersion();
final String pluginName = NDailyRewards.getInstance().getPluginMeta().getName();
final String pluginVersion = NDailyRewards.getInstance().getPluginMeta().getVersion();
final String pluginName = NDailyRewards.getInstance().getDescription().getName();
final String pluginVersion = NDailyRewards.getInstance().getDescription().getVersion();
try {
final HttpClient client = HttpClient.newHttpClient();
final HttpRequest req = HttpRequest.newBuilder()
Expand Down

0 comments on commit ef21992

Please sign in to comment.