Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 8, 2020. It is now read-only.

Commit 0e7c86c

Browse filesBrowse files
committed
Update to use new routing
1 parent d9aa1eb commit 0e7c86c
Copy full SHA for 0e7c86c

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎src/main/java/net/mcapi/uuid/queries/NameQuery.java

Copy file name to clipboardExpand all lines: src/main/java/net/mcapi/uuid/queries/NameQuery.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public NameQuery(String uuid) {
2323

2424
// Might add the @Cacheable annotation
2525
@Async public String call() throws Exception {
26-
URL url = new URL(UUIDAPI.getRegion().buildURL() + "/name/" + uuid);
26+
URL url = new URL(UUIDAPI.getRegion().buildURL() + "/v3/name/" + uuid);
2727
URLConnection con = url.openConnection();
2828

2929
con.addRequestProperty("User-Agent", "MC-API Java Client");

‎src/main/java/net/mcapi/uuid/queries/UUIDQuery.java

Copy file name to clipboardExpand all lines: src/main/java/net/mcapi/uuid/queries/UUIDQuery.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public UUIDQuery(String name) {
2424

2525
// Might add the @Cacheable annotation
2626
@Async public UUID call() throws Exception {
27-
URL url = new URL(UUIDAPI.getRegion().buildURL() + "/uuid/" + name);
27+
URL url = new URL(UUIDAPI.getRegion().buildURL() + "/v3/uuid/" + name);
2828
URLConnection con = url.openConnection();
2929

3030
con.addRequestProperty("User-Agent", "MC-API Java Client");

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.