Skip to content
This repository was archived by the owner on Jul 8, 2020. It is now read-only.

Commit 60197d2

Browse files
committed
Remove built-in handlers, they can now be found in the README.md file.
1 parent 001cba2 commit 60197d2

File tree

4 files changed

+10
-222
lines changed

4 files changed

+10
-222
lines changed

pom.xml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>net.mcapi.uuid</groupId>
44
<artifactId>uuid-java</artifactId>
5-
<version>1.0.2</version>
5+
<version>1.0.3</version>
66
<name>uuid-java</name>
77

88
<scm>
@@ -16,37 +16,9 @@
1616
<id>oss.sonatype.org</id>
1717
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
1818
</repository>
19-
20-
<repository>
21-
<id>spigot</id>
22-
<url>http://repo.md-5.net/content/groups/public/</url>
23-
<snapshots>
24-
<enabled>true</enabled>
25-
</snapshots>
26-
</repository>
2719
</repositories>
2820

2921
<dependencies>
30-
<dependency>
31-
<groupId>net.md-5</groupId>
32-
<artifactId>bungeecord-api</artifactId>
33-
<version>1.8-SNAPSHOT</version>
34-
<type>jar</type>
35-
<scope>provided</scope>
36-
</dependency>
37-
38-
<dependency>
39-
<groupId>org.bukkit</groupId>
40-
<artifactId>bukkit</artifactId>
41-
<version>1.7.9-R0.3-SNAPSHOT</version>
42-
</dependency>
43-
44-
<dependency>
45-
<groupId>org.bukkit</groupId>
46-
<artifactId>craftbukkit</artifactId>
47-
<version>1.7.9-R0.3-SNAPSHOT</version>
48-
</dependency>
49-
5022
<dependency>
5123
<groupId>com.jcabi</groupId>
5224
<artifactId>jcabi-aspects</artifactId>

src/main/java/net/mcapi/uuid/UUIDAPI.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package net.mcapi.uuid;
22

3-
import java.util.*;
3+
import java.util.UUID;
44

5-
import net.mcapi.uuid.handlers.*;
5+
import net.mcapi.uuid.handlers.JavaHandler;
66

77
import com.google.common.base.Preconditions;
88

@@ -16,13 +16,14 @@
1616
* <br>By default the {@link JavaHandler}
1717
* is used, however other handlers can be
1818
* used via {@link #setHandler(UUIDHandler)}
19+
* <p>
20+
* By default the {@link ServerRegion US server region} is used for queries, you change this via {@link #setRegion(ServerRegion)}
1921
*
2022
* @author njb_said
2123
*/
2224
public class UUIDAPI {
2325

2426
private static UUIDHandler handler;
25-
private final static List<UUIDHandler> handlers = new LinkedList<UUIDHandler>();
2627
private static ServerRegion region;
2728

2829
/**
@@ -37,14 +38,15 @@ public static ServerRegion getRegion() {
3738
return region;
3839
}
3940

41+
/**
42+
* Change the {@link ServerRegion} we will use
43+
*
44+
* @param region new region to use for queries
45+
*/
4046
public static void setRegion(ServerRegion region) {
4147
UUIDAPI.region = region;
4248
}
4349

44-
public static List<UUIDHandler> getHandlers() {
45-
return handlers;
46-
}
47-
4850
public static void setHandler(UUIDHandler newHandler) {
4951
Preconditions.checkNotNull(newHandler, "Handler cannot be null!");
5052
handler = newHandler;
@@ -60,9 +62,6 @@ public static UUIDHandler getHandler() {
6062
}
6163

6264
static {
63-
handlers.add(new JavaHandler());
64-
handlers.add(new BukkitHandler());
65-
handlers.add(new BungeeHandler());
6665
handler = new JavaHandler();
6766
region = ServerRegion.US;
6867
}

src/main/java/net/mcapi/uuid/handlers/BukkitHandler.java

Lines changed: 0 additions & 96 deletions
This file was deleted.

src/main/java/net/mcapi/uuid/handlers/BungeeHandler.java

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)