1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-21 01:38:51 +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.command.CommandSender;
import pw.yumc.YumCore.annotation.NotProguard;
/**
* 插件日志输出类
*
* @author
* @since 2016年7月23日 上午9:11:01
*/
@NotProguard
public class Log {
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");