mirror of
				https://e.coding.net/circlecloud/YumCore.git
				synced 2025-11-03 23:06:02 +00:00 
			
		
		
		
	@@ -17,8 +17,8 @@ import org.bukkit.command.CommandSender;
 | 
			
		||||
public class Log {
 | 
			
		||||
    private static boolean debug = new File(String.format("plugins%1$sYumCore%1$sdebug", File.separatorChar)).exists();
 | 
			
		||||
    private static final Logger logger = P.instance.getLogger();
 | 
			
		||||
    private static final String prefix = String.format("§6[§b%s§6]§r ", P.instance.getName());
 | 
			
		||||
    private static final CommandSender console = Bukkit.getConsoleSender();
 | 
			
		||||
    private static String prefix = String.format("§6[§b%s§6]§r ", P.instance.getName());
 | 
			
		||||
 | 
			
		||||
    private Log() {
 | 
			
		||||
    }
 | 
			
		||||
@@ -240,6 +240,14 @@ public class Log {
 | 
			
		||||
        logger.log(level, msg, thrown);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @param prefix
 | 
			
		||||
     *            插件前缀
 | 
			
		||||
     */
 | 
			
		||||
    public static void setPrefix(final String prefix) {
 | 
			
		||||
        Log.prefix = prefix;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Log a SEVERE message.
 | 
			
		||||
     * <p>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user