Skip to content

Commit 0884ff7

Browse files
authored
Release v1.2.0
feat: Downgrade to java 11, add support for referral leaderboards
2 parents e394ce2 + cb37fa4 commit 0884ff7

File tree

15 files changed

+1458
-315
lines changed

15 files changed

+1458
-315
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.rappytv.globaltags</groupId>
88
<artifactId>GlobalTagsJava</artifactId>
9-
<version>1.1.9</version>
9+
<version>1.2.0</version>
1010

1111
<name>GlobalTagsJava</name>
1212
<description>A wrapper for the GlobalTagsAPI</description>
@@ -35,8 +35,8 @@
3535
</scm>
3636

3737
<properties>
38-
<maven.compiler.source>17</maven.compiler.source>
39-
<maven.compiler.target>17</maven.compiler.target>
38+
<maven.compiler.source>11</maven.compiler.source>
39+
<maven.compiler.target>11</maven.compiler.target>
4040
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4141
</properties>
4242

src/main/java/com/rappytv/globaltags/wrapper/GlobalTagsAPI.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public abstract class GlobalTagsAPI<T> {
3333
*/
3434
@NotNull
3535
public Urls getUrls() {
36-
return urls;
36+
return this.urls;
3737
}
3838

3939
/**
@@ -76,7 +76,7 @@ public String getLanguageCode() {
7676
*/
7777
@NotNull
7878
public PlayerInfo.Cache<T> getCache() {
79-
return cache;
79+
return this.cache;
8080
}
8181

8282
/**
@@ -85,7 +85,7 @@ public PlayerInfo.Cache<T> getCache() {
8585
*/
8686
@NotNull
8787
public ApiHandler<T> getApiHandler() {
88-
return apiHandler;
88+
return this.apiHandler;
8989
}
9090

9191
/**
@@ -108,9 +108,9 @@ public ApiHandler<T> getApiHandler() {
108108
*/
109109
@NotNull
110110
public String getAuthorizationHeader() {
111-
String auth = getAuthorization();
111+
String auth = this.getAuthorization();
112112
if(auth == null) return "";
113-
return String.format("%s %s", getAuthType().getId(), auth);
113+
return String.format("%s %s", this.getAuthType().getId(), auth);
114114
}
115115

116116
/**
@@ -149,7 +149,7 @@ public Agent(@NotNull String agent, @NotNull String agentVersion, @Nullable Stri
149149
*/
150150
@NotNull
151151
public String getAgent() {
152-
return agent;
152+
return this.agent;
153153
}
154154

155155
/**
@@ -158,7 +158,7 @@ public String getAgent() {
158158
*/
159159
@NotNull
160160
public String getAgentVersion() {
161-
return agentVersion;
161+
return this.agentVersion;
162162
}
163163

164164
/**
@@ -167,7 +167,7 @@ public String getAgentVersion() {
167167
*/
168168
@Nullable
169169
public String getMinecraftVersion() {
170-
return minecraftVersion;
170+
return this.minecraftVersion;
171171
}
172172

173173
@Override
@@ -176,7 +176,7 @@ public String getMinecraftVersion() {
176176
"%s v%s%s",
177177
this.agent,
178178
this.agentVersion,
179-
minecraftVersion != null ? " - " + minecraftVersion : ""
179+
this.minecraftVersion != null ? " - " + this.minecraftVersion : ""
180180
);
181181
}
182182
}

src/main/java/com/rappytv/globaltags/wrapper/enums/AuthProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ public enum AuthProvider {
2828
* @return The internal identifier of the authentication provider
2929
*/
3030
public String getId() {
31-
return id;
31+
return this.id;
3232
}
3333
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.rappytv.globaltags.wrapper.enums;
2+
3+
/**
4+
* An enum for the type of the referral leaderboard
5+
*/
6+
public enum ReferralLeaderboardType {
7+
/**
8+
* The total number of referrals
9+
*/
10+
TOTAL,
11+
/**
12+
* The number of referrals in the current month
13+
*/
14+
CURRENT_MONTH
15+
}

0 commit comments

Comments
 (0)