mirror of
https://github.com/CarmJos/cn2b2t-project.git
synced 2026-06-04 18:17:19 +08:00
修复无法记录Console的bug
This commit is contained in:
@@ -26,9 +26,9 @@ public class DeathListener implements Listener {
|
|||||||
meta.setLore(lore);
|
meta.setLore(lore);
|
||||||
skull.setItemMeta(meta);
|
skull.setItemMeta(meta);
|
||||||
e.getDrops().add(skull);
|
e.getDrops().add(skull);
|
||||||
LoggerManager.log(LoggerManager.LogType.KILLED, e.getEntity(), e.getDeathMessage());
|
LoggerManager.log(LoggerManager.LogType.KILLED, e.getEntity(), e.getDeathMessage() + e.getEntity().getLocation().toString());
|
||||||
} else {
|
} else {
|
||||||
LoggerManager.log(LoggerManager.LogType.DEATH, e.getEntity(), e.getDeathMessage());
|
LoggerManager.log(LoggerManager.LogType.DEATH, e.getEntity(), e.getDeathMessage() + e.getEntity().getLocation().toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import org.bukkit.Bukkit;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.cn2b2t.core.managers.utils.DataManager;
|
import org.cn2b2t.core.managers.utils.DataManager;
|
||||||
import org.cn2b2t.core.managers.utils.database.Connection;
|
import org.cn2b2t.core.managers.utils.database.Connection;
|
||||||
|
import org.cn2b2t.core.utils.UUIDUtils;
|
||||||
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
@@ -49,7 +50,7 @@ public class LoggerManager {
|
|||||||
|
|
||||||
public static void logConsole(final LogType lt, final String s) {
|
public static void logConsole(final LogType lt, final String s) {
|
||||||
final String name = "CONSOLE";
|
final String name = "CONSOLE";
|
||||||
writeIn(UUID.fromString("00000000000000000000000000000000"), name, Bukkit.getServer().getPort(), lt, s);
|
writeIn(UUIDUtils.toUUID("00000000000000000000000000000000"), name, Bukkit.getServer().getPort(), lt, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getDateString() {
|
public static String getDateString() {
|
||||||
|
|||||||
Reference in New Issue
Block a user