mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-24 02:08:48 +00:00
feat: 添加插件前缀设置
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
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
Block a user