Skip to content

Commit

Permalink
Release v1.2.0
Browse files Browse the repository at this point in the history
feat: Downgrade to java 11, add support for referral leaderboards
  • Loading branch information
RappyTV authored Dec 9, 2024
2 parents e394ce2 + cb37fa4 commit 0884ff7
Show file tree
Hide file tree
Showing 15 changed files with 1,458 additions and 315 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.rappytv.globaltags</groupId>
<artifactId>GlobalTagsJava</artifactId>
<version>1.1.9</version>
<version>1.2.0</version>

<name>GlobalTagsJava</name>
<description>A wrapper for the GlobalTagsAPI</description>
Expand Down Expand Up @@ -35,8 +35,8 @@
</scm>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

Expand Down
18 changes: 9 additions & 9 deletions src/main/java/com/rappytv/globaltags/wrapper/GlobalTagsAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public abstract class GlobalTagsAPI<T> {
*/
@NotNull
public Urls getUrls() {
return urls;
return this.urls;
}

/**
Expand Down Expand Up @@ -76,7 +76,7 @@ public String getLanguageCode() {
*/
@NotNull
public PlayerInfo.Cache<T> getCache() {
return cache;
return this.cache;
}

/**
Expand All @@ -85,7 +85,7 @@ public PlayerInfo.Cache<T> getCache() {
*/
@NotNull
public ApiHandler<T> getApiHandler() {
return apiHandler;
return this.apiHandler;
}

/**
Expand All @@ -108,9 +108,9 @@ public ApiHandler<T> getApiHandler() {
*/
@NotNull
public String getAuthorizationHeader() {
String auth = getAuthorization();
String auth = this.getAuthorization();
if(auth == null) return "";
return String.format("%s %s", getAuthType().getId(), auth);
return String.format("%s %s", this.getAuthType().getId(), auth);
}

/**
Expand Down Expand Up @@ -149,7 +149,7 @@ public Agent(@NotNull String agent, @NotNull String agentVersion, @Nullable Stri
*/
@NotNull
public String getAgent() {
return agent;
return this.agent;
}

/**
Expand All @@ -158,7 +158,7 @@ public String getAgent() {
*/
@NotNull
public String getAgentVersion() {
return agentVersion;
return this.agentVersion;
}

/**
Expand All @@ -167,7 +167,7 @@ public String getAgentVersion() {
*/
@Nullable
public String getMinecraftVersion() {
return minecraftVersion;
return this.minecraftVersion;
}

@Override
Expand All @@ -176,7 +176,7 @@ public String getMinecraftVersion() {
"%s v%s%s",
this.agent,
this.agentVersion,
minecraftVersion != null ? " - " + minecraftVersion : ""
this.minecraftVersion != null ? " - " + this.minecraftVersion : ""
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ public enum AuthProvider {
* @return The internal identifier of the authentication provider
*/
public String getId() {
return id;
return this.id;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.rappytv.globaltags.wrapper.enums;

/**
* An enum for the type of the referral leaderboard
*/
public enum ReferralLeaderboardType {
/**
* The total number of referrals
*/
TOTAL,
/**
* The number of referrals in the current month
*/
CURRENT_MONTH
}
Loading

0 comments on commit 0884ff7

Please sign in to comment.