File tree 1 file changed +2
-30
lines changed
src/main/java/me/adrigamer2950/adriapi/api/util
1 file changed +2
-30
lines changed Original file line number Diff line number Diff line change 5
5
import lombok .Getter ;
6
6
import lombok .Setter ;
7
7
import org .bukkit .Bukkit ;
8
- import org .jetbrains .annotations .ApiStatus ;
9
8
10
- @ SuppressWarnings ("DeprecatedIsStillUsed" )
11
9
@ Getter
12
10
@ AllArgsConstructor
13
11
public enum ServerType {
@@ -17,21 +15,7 @@ public enum ServerType {
17
15
18
16
PAPER ("Paper" ),
19
17
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" );
35
19
36
20
@ Getter
37
21
private static final ServerType type = ServerType .getServerType ();
@@ -62,19 +46,7 @@ private static ServerType getServerType() {
62
46
63
47
return ServerType .BUKKIT ;
64
48
} 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 ;
78
50
}
79
51
}
80
52
}
You can’t perform that action at this time.
0 commit comments