mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-08-06 20:42:57 +00:00
Added Paper Check (#163)
This commit is contained in:
parent
d78d28cc7a
commit
bd84257c16
5 changed files with 91 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue