LunaChat v2.6.0 : Refactored. Devide implements from Channel.

このコミットが含まれているのは:
ucchyocean committed 2014-04-04 19:16:50 +09:00
1 親 4eae2d9785
コミット cf719a8bd4
10ファイル変更
+811 -639

検索条件に一致するファイルはありません

+6 -6
ファイルの表示
@@ -19,10 +19,8 @@ import org.bukkit.scheduler.BukkitRunnable;
*/
public class LunaChatLogger {
private static final SimpleDateFormat lformat =
new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
private static final SimpleDateFormat dformat =
new SimpleDateFormat("yyyy-MM-dd");
private SimpleDateFormat lformat;
private SimpleDateFormat dformat;
private File file;
private String dirPath;
@@ -34,6 +32,9 @@ public class LunaChatLogger {
*/
public LunaChatLogger(String name) {
lformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
dformat = new SimpleDateFormat("yyyy-MM-dd");
this.name = name;
checkDir();
}
@@ -80,8 +81,7 @@ public class LunaChatLogger {
private void checkDir() {
String temp = LunaChat.getInstance().getDataFolder() +
File.separator + "logs" + File.separator +
dformat.format(new Date());
File.separator + "logs" + File.separator + dformat.format(new Date());
if ( temp.equals(dirPath) ) {
return;