GT5-Unofficial/main/java/gregtech/common/GT_PlayerActivityLogger.java

42 lines
1.1 KiB
Java
Raw Normal View History

2015-06-23 22:29:05 +00:00
package gregtech.common;
import gregtech.GT_Mod;
import gregtech.api.util.GT_Log;
import java.io.PrintStream;
import java.util.ArrayList;
public class GT_PlayerActivityLogger
implements Runnable
{
public void run()
{
try
{
for (;;)
{
if (GT_Log.pal == null) {
return;
}
ArrayList<String> tList = GT_Mod.gregtechproxy.mBufferedPlayerActivity;
GT_Mod.gregtechproxy.mBufferedPlayerActivity = new ArrayList();
String tLastOutput = "";
int i = 0;
for (int j = tList.size(); i < j; i++)
{
if (!tLastOutput.equals(tList.get(i))) {
GT_Log.pal.println((String)tList.get(i));
}
tLastOutput = (String)tList.get(i);
}
Thread.sleep(10000L);
}
}
catch (Throwable e) {}
}
}
2015-04-23 16:14:22 +00:00
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
* Qualified Name: gregtech.common.GT_PlayerActivityLogger
* JD-Core Version: 0.7.0.1
*/