parent
f5a9fc1131
commit
ca367d1eaa
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue