Use correct link for ProtocolLib on Forge

This commit is contained in:
riking 2014-06-23 18:31:22 -07:00
parent fd02dbfb60
commit 9abe0bfeed
2 changed files with 14 additions and 4 deletions

View File

@ -282,10 +282,16 @@ public class LibsDisguises extends JavaPlugin {
System.out.print("[LibsDisguises] Uh oh! Trouble while making values for the disguise " + disguiseType.name() System.out.print("[LibsDisguises] Uh oh! Trouble while making values for the disguise " + disguiseType.name()
+ "!"); + "!");
System.out.print("[LibsDisguises] Before reporting this error, " System.out.print("[LibsDisguises] Before reporting this error, "
+ "please make sure you are using the latest version of LibsDisguises and ProtocolLib"); + "please make sure you are using the latest version of LibsDisguises and ProtocolLib.");
System.out if (ReflectionManager.isForge()) {
.print("[LibsDisguises] You can try the latest builds at (ProtocolLib) " System.out.print("[LibsDisguises] Development builds are available at (ProtocolLib) "
+ "http://assets.comphenix.net/job/ProtocolLib%20-%20Cauldron/ and (LibsDisguises) http://ci.md-5.net/job/LibsDisguises/");
} else {
System.out.print("[LibsDisguises] Development builds are available at (ProtocolLib) "
+ "http://assets.comphenix.net/job/ProtocolLib/ and (LibsDisguises) http://ci.md-5.net/job/LibsDisguises/"); + "http://assets.comphenix.net/job/ProtocolLib/ and (LibsDisguises) http://ci.md-5.net/job/LibsDisguises/");
}
System.out.print("[LibsDisguises] Note that these builds have not been reviewed by Bukkit for safety.");
ex.printStackTrace(); ex.printStackTrace();
} }
} }

View File

@ -539,6 +539,10 @@ public class ReflectionManager {
return null; return null;
} }
public static boolean isForge() {
return isForge;
}
private static String methodSignaturePart(Class<?> param) { private static String methodSignaturePart(Class<?> param) {
if (param.isArray()) { if (param.isArray()) {
return "[" + methodSignaturePart(param.getComponentType()); return "[" + methodSignaturePart(param.getComponentType());