File tree Expand file tree Collapse file tree 2 files changed +0
-21
lines changed
API/src/main/java/com/comphenix/protocol/utility
ProtocolLib/src/main/java/com/comphenix/protocol Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -60,17 +60,4 @@ public static <E> List<E> asList(E... elements) {
60
60
public static boolean isUsingSpigot () {
61
61
return Bukkit .getServer ().getVersion ().contains ("Spigot" );
62
62
}
63
-
64
- /**
65
- * Gets the currently running major Java version.
66
- * @return The version or -1 if it could not be found
67
- */
68
- public static int getJavaVersion () {
69
- try {
70
- String version = Runtime .class .getPackage ().getSpecificationVersion ();
71
- return (int ) (Double .parseDouble (version ) * 10 % 10 );
72
- } catch (Throwable ex ) {
73
- return -1 ;
74
- }
75
- }
76
63
}
Original file line number Diff line number Diff line change 52
52
import com .comphenix .protocol .utility .ChatExtensions ;
53
53
import com .comphenix .protocol .utility .EnhancerFactory ;
54
54
import com .comphenix .protocol .utility .MinecraftVersion ;
55
- import com .comphenix .protocol .utility .Util ;
56
55
import com .google .common .base .Splitter ;
57
56
import com .google .common .collect .Iterables ;
58
57
import com .google .common .collect .Sets ;
@@ -155,13 +154,6 @@ public void onLoad() {
155
154
logger = getLogger ();
156
155
ProtocolLogger .init (this );
157
156
158
- int java = Util .getJavaVersion ();
159
- if (java != -1 && java < 8 && !getConfig ().getBoolean ("ignoreJava" , false )) {
160
- logger .warning ("Detected outdated Java version: Java " + java );
161
- logger .warning ("Future versions of ProtocolLib and Minecraft will require Java 8 or higher" );
162
- logger .warning ("Update as soon as possible." );
163
- }
164
-
165
157
// Initialize enhancer factory
166
158
EnhancerFactory .getInstance ().setClassLoader (getClassLoader ());
167
159
You can’t perform that action at this time.
0 commit comments