1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-04 22:58:56 +00:00

feat: 不混淆日志类

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2017-02-08 22:51:13 +08:00
parent f7e7355dba
commit 2fc123df5c

View File

@ -10,12 +10,15 @@ import org.bukkit.Bukkit;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import pw.yumc.YumCore.annotation.NotProguard;
/** /**
* 插件日志输出类 * 插件日志输出类
* *
* @author * @author
* @since 2016年7月23日 上午9:11:01 * @since 2016年7月23日 上午9:11:01
*/ */
@NotProguard
public class Log { public class Log {
private static boolean globalDebug = new File(String.format("plugins%1$sYumCore%1$sdebug", File.separatorChar)).exists(); private static boolean globalDebug = new File(String.format("plugins%1$sYumCore%1$sdebug", File.separatorChar)).exists();
private static boolean debug = globalDebug || P.getDescription().getVersion().contains("DEV"); private static boolean debug = globalDebug || P.getDescription().getVersion().contains("DEV");