mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-12 05:53:53 +00:00
Fixed pom, added tprandom, admins can now kick other admins (#21)
* Fixed pom, added tprandom, admins can now kick other admins * went too fast * im mental
This commit is contained in:
@ -420,4 +420,11 @@ public class FUtil
|
||||
String packageName = Bukkit.getServer().getClass().getPackage().getName();
|
||||
return packageName.substring(packageName.lastIndexOf('.') + 1);
|
||||
}
|
||||
|
||||
public static int random(int min, int max)
|
||||
{
|
||||
int range = max - min + 1;
|
||||
int value = (int) (Math.random() * range) + min;
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user