mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-11 21:43:54 +00:00
Added Paper Check (#163)
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user