Added Paper Check (#163)

This commit is contained in:
Nathan Curran
2019-12-11 12:13:47 +11:00
committed by super
parent d78d28cc7a
commit bd84257c16
5 changed files with 91 additions and 13 deletions

View File

@ -460,4 +460,17 @@ public class FUtil
int value = (int)(Math.random() * range) + min;
return value;
}
public static boolean isPaper()
{
try
{
Class.forName("com.destroystokyo.paper.PaperConfig");
return true;
}
catch (ClassNotFoundException ex)
{
return false;
}
}
}