mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Added isClassAvailable method
This commit is contained in:
1 parent
698e8d72a4
commit
ebd25f2ec1
1 file changed
+10
@@ -1005,4 +1005,14 @@ public class Util {
|
||||
return BlockFace.WEST;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static boolean isClassAvailable(String qualifiedName) {
|
||||
try {
|
||||
Class.forName(qualifiedName);
|
||||
return true;
|
||||
} catch (ClassNotFoundException e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user