Merge pull request #50 from Parabot/development

Development
This commit is contained in:
Jeroen Ketelaar
2016-01-26 22:17:42 +01:00
5 changed files with 21 additions and 13 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
mvn install:install-file -DgroupId=${project.groupId} -DartifactId=${project.artifactId} -Dversion=${project.version} -Dpackaging=jar -Dfile=../target/${project.build.finalName}-fat.jar -DlocalRepositoryPath=../../Maven-Repository
mvn install:install-file -DgroupId=${project.groupId} -DartifactId=${project.artifactId} -Dversion=${project.version} -Dpackaging=jar -Dfile=../target/${project.build.finalName}-jar-with-dependencies.jar -DlocalRepositoryPath=../../Maven-Repository
:: mvn install:install-file -DgroupId=org.parabot -DartifactId=client -Dversion=2.4.1.1 -Dpackaging=jar -Dfile=../target/Parabot-V2.4.1.1-jar-with-dependencies.jar -DlocalRepositoryPath=../../Maven-Repository
:: mvn install:install-file -DgroupId=org.parabot -DartifactId=client -Dversion=2.4.3 -Dpackaging=jar -Dfile=../target/Parabot-V2.4.3-jar-with-dependencies.jar -DlocalRepositoryPath=../../Maven-Repository
+9 -9
View File
@@ -6,7 +6,7 @@
<groupId>org.parabot</groupId>
<artifactId>client</artifactId>
<version>2.4.3.2</version>
<version>2.4.5</version>
<packaging>jar</packaging>
@@ -84,14 +84,14 @@
<resource>
<directory>deploy</directory>
<filtering>true</filtering>
<excludes>
<exclude>deploy.bat</exclude>
<exclude>package.bat</exclude>
<exclude>clean.bat</exclude>
</excludes>
<!--<includes>-->
<!--<include>deploy.bat</include>-->
<!--</includes>-->
<!--<excludes>-->
<!--<exclude>deploy.bat</exclude>-->
<!--<exclude>package.bat</exclude>-->
<!--<exclude>clean.bat</exclude>-->
<!--</excludes>-->
<includes>
<include>deploy.bat</include>
</includes>
</resource>
</resources>
@@ -88,7 +88,12 @@ public class ASMClassLoader extends ClassLoader {
}
private final ProtectionDomain getDomain() {
CodeSource code = new CodeSource(null, (Certificate[]) null);
CodeSource code = null;
try {
code = new CodeSource(new URL("http://www.url.com/"), (Certificate[]) null);
} catch (MalformedURLException e) {
e.printStackTrace();
}
return new ProtectionDomain(code, getPermissions());
}
@@ -49,7 +49,9 @@ public class AddSuperAdapter implements Injectable {
AbstractInsnNode ain = (AbstractInsnNode) ili.next();
if (ain.getOpcode() == Opcodes.INVOKESPECIAL) {
MethodInsnNode min = (MethodInsnNode) ain;
min.owner = superClass;
if(!min.owner.equals(node.name)) {
min.owner = superClass;
}
break;
}
}
@@ -87,6 +87,7 @@ public class LocalServers extends ServerParser {
}
for (File file : Directories.listJSONFiles(Directories.getServerPath())){
Core.verbose("[Local server in]: " + file.getName());
try {
JSONObject object = (JSONObject) WebUtil.getJsonParser().parse(new FileReader(file));
String name = (String) object.get("name");
@@ -104,9 +105,9 @@ public class LocalServers extends ServerParser {
String provider = (String) locations.get("provider");
String hooks = (String) locations.get("hooks");
Core.verbose("[Local server]: " + name);
ServerProviderInfo serverProviderInfo = new ServerProviderInfo(server, hooks, name, clientClass, bankTabs);
System.out.println(server);
ServerDescription desc = new ServerDescription(name,
author, version);
SERVER_CACHE.put(desc, new LocalPublicServerExecuter(name, serverProviderInfo, server, provider));