Removed extracting outdated files from JAR

This commit is contained in:
Norbi Peti 2016-04-07 09:11:46 +02:00
parent 5420b8f574
commit 6300dc9ca5

View file

@ -44,25 +44,6 @@ public class PluginMain extends JavaPlugin
final File[] libs = new File[] { // added to class path final File[] libs = new File[] { // added to class path
new File(getDataFolder(), "jni4net.j-0.8.8.0.jar"), new File(getDataFolder(), "jni4net.j-0.8.8.0.jar"),
new File(getDataFolder(), "VirtualComputerSender.j4n.jar") }; new File(getDataFolder(), "VirtualComputerSender.j4n.jar") };
final File[] libs2 = new File[] {
new File(getDataFolder(), "jni4net.n-0.8.8.0.dll"),
new File(getDataFolder(), "jni4net.n.w64.v40-0.8.8.0.dll") };
for (final File lib : libs)
{
if (!lib.exists())
{
JarUtils.extractFromJar(lib.getName(),
lib.getAbsolutePath());
}
}
for (final File lib : libs2)
{
if (!lib.exists())
{
JarUtils.extractFromJar(lib.getName(),
lib.getAbsolutePath());
}
}
for (final File lib : libs) for (final File lib : libs)
{ {
if (!lib.exists()) if (!lib.exists())