Remove 1.7.10

This commit is contained in:
xfl03 committed 2016-12-04 14:38:17 +08:00
1 parent cdd42d60e3
commit 481b0d9df9
40 files changed
+169 -534

No files matched your search

@@ -0,0 +1,17 @@
package customskinloader.utils;
public class TimeUtil {
public static long getCurrentUnixTimestamp(){
return System.currentTimeMillis()/1000l;
}
public static long getUnixTimestamp(long offset){
return getCurrentUnixTimestamp()+offset;
}
public static long getUnixTimestampRandomDelay(long offset){
return getCurrentUnixTimestamp()+offset+random(0,5);
}
private static int random(int min,int max){
return (int)(Math.random()*(max-min+1))+min;
}
}