Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.modnmetl</groupId>
<artifactId>virtualrealty</artifactId>
<version>2.2.1</version>
<version>2.2.2</version>
<packaging>jar</packaging>

<description>A plot creation and management plugin for Minecraft</description>
Expand Down Expand Up @@ -175,7 +175,7 @@
<dependency>
<groupId>de.tr7zw</groupId>
<artifactId>item-nbt-api-plugin</artifactId>
<version>2.9.2</version>
<version>2.10.0</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/com/modnmetl/virtualrealty/utils/Loader.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ private void runLoader(String licenseKey, String licenseEmail, String pluginVers
URLConnection httpConn;
if (debug) {
String premiumPath = VirtualRealty.getInstance().getDataFolder().getAbsolutePath() + File.separator + "data" + File.separator + "virtualrealty-premium-" + VirtualRealty.getInstance().getDescription().getVersion() + ".jar";
url = new URL("file:/" + premiumPath);
System.out.println(url);
File originFile = new File(premiumPath);
InputStream targetStream = new FileInputStream(originFile);
File loaderFile = File.createTempFile(String.valueOf(Arrays.asList(new Random().nextInt(9), new Random().nextInt(9), new Random().nextInt(9))), ".tmp");
Expand Down Expand Up @@ -78,7 +76,6 @@ private void runLoader(String licenseKey, String licenseEmail, String pluginVers
}
((HttpURLConnection) httpConn).disconnect();
URL jarUrl = loaderFile.toURI().toURL();
System.out.println(jarUrl);
VirtualRealty.getInstance().setClassLoader(new CustomClassLoader(
new URL[]{jarUrl}, classLoader)
);
Expand Down