Skip to content

Commit bed78f1

Browse files
committedFeb 20, 2025·
feat: Remove ServerType#VELOCITY and ServerType#BUNGEE
1 parent 15f0bf2 commit bed78f1

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed
 

‎src/main/java/me/adrigamer2950/adriapi/api/util/ServerType.java

+2-30
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
import lombok.Getter;
66
import lombok.Setter;
77
import org.bukkit.Bukkit;
8-
import org.jetbrains.annotations.ApiStatus;
98

10-
@SuppressWarnings("DeprecatedIsStillUsed")
119
@Getter
1210
@AllArgsConstructor
1311
public enum ServerType {
@@ -17,21 +15,7 @@ public enum ServerType {
1715

1816
PAPER("Paper"),
1917

20-
BUKKIT("Bukkit"),
21-
22-
/**
23-
* @deprecated I won't be making a Velocity/Bungee API in the near future
24-
*/
25-
@Deprecated(forRemoval = true)
26-
@ApiStatus.ScheduledForRemoval(inVersion = "2.3.0")
27-
VELOCITY("Velocity"),
28-
29-
/**
30-
* @deprecated I won't be making a Velocity/Bungee API in the near future
31-
*/
32-
@Deprecated(forRemoval = true)
33-
@ApiStatus.ScheduledForRemoval(inVersion = "2.3.0")
34-
BUNGEE("BungeeCord");
18+
BUKKIT("Bukkit");
3519

3620
@Getter
3721
private static final ServerType type = ServerType.getServerType();
@@ -62,19 +46,7 @@ private static ServerType getServerType() {
6246

6347
return ServerType.BUKKIT;
6448
} catch (ClassNotFoundException ex3) {
65-
try {
66-
Class.forName("com.velocitypowered.api.proxy.ProxyServer");
67-
68-
return ServerType.VELOCITY;
69-
} catch (ClassNotFoundException ex4) {
70-
try {
71-
Class.forName("net.md_5.bungee.api.ProxyServer");
72-
73-
return ServerType.BUNGEE;
74-
} catch (ClassNotFoundException ex5) {
75-
return null;
76-
}
77-
}
49+
return null;
7850
}
7951
}
8052
}

0 commit comments

Comments
 (0)
Please sign in to comment.