3
0
Mirror von https://github.com/TheSilentPro/HeadDB.git synchronisiert 2024-12-26 02:50:07 +01:00

push to 1.19.4 and enhance logging

Dieser Commit ist enthalten in:
Silent 2023-04-15 23:29:40 +02:00
Ursprung 49f3d0a279
Commit d502d8406d
3 geänderte Dateien mit 10 neuen und 10 gelöschten Zeilen

Datei anzeigen

@ -1,6 +1,6 @@
# HeadDB # HeadDB
[![](https://jitpack.io/v/TheSilentPro/HeadDB.svg)](https://jitpack.io/#TheSilentPro/HeadDB) <br> [![](https://jitpack.io/v/TheSilentPro/HeadDB.svg)](https://jitpack.io/#TheSilentPro/HeadDB) <br>
Thousands of heads in one plugin! Database with thousands of heads in one plugin!
# Downloading # Downloading
You may download it either via the [Releases Page](https://github.com/TheSilentPro/HeadDB/releases) or [Spigot](https://www.spigotmc.org/resources/free-headdb-head-database.84967/). You may download it either via the [Releases Page](https://github.com/TheSilentPro/HeadDB/releases) or [Spigot](https://www.spigotmc.org/resources/free-headdb-head-database.84967/).
@ -10,4 +10,3 @@ You may report issues on the [Issue Tracker](https://github.com/TheSilentPro/Hea
# API # API
All API methods can be found in the [HeadAPI](https://github.com/TheSilentPro/HeadDB/blob/master/src/main/java/tsp/headdb/core/api/HeadAPI.java) class. <br> All API methods can be found in the [HeadAPI](https://github.com/TheSilentPro/HeadDB/blob/master/src/main/java/tsp/headdb/core/api/HeadAPI.java) class. <br>
Alternatively you may view the [javadocs](https://javadocs.pages.dev/headdb/4.0.0/tsp/headdb/api/HeadAPI).

Datei anzeigen

@ -6,7 +6,7 @@
<groupId>tsp.headdb</groupId> <groupId>tsp.headdb</groupId>
<artifactId>HeadDB</artifactId> <artifactId>HeadDB</artifactId>
<version>5.0.0-rc.3</version> <version>5.0.0-rc.4</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>HeadDB</name> <name>HeadDB</name>
@ -67,7 +67,7 @@
<dependency> <dependency>
<groupId>com.google.code.gson</groupId> <groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId> <artifactId>gson</artifactId>
<version>2.10</version> <version>2.10.1</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>

Datei anzeigen

@ -3,6 +3,7 @@ package tsp.headdb.core.util;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import tsp.smartplugin.utils.StringUtils; import tsp.smartplugin.utils.StringUtils;
@SuppressWarnings("unused")
public class HeadDBLogger { public class HeadDBLogger {
private final boolean debug; private final boolean debug;
@ -34,14 +35,14 @@ public class HeadDBLogger {
if ((level == LogLevel.DEBUG || level == LogLevel.TRACE) && !debug) { if ((level == LogLevel.DEBUG || level == LogLevel.TRACE) && !debug) {
return; return;
} }
Bukkit.getConsoleSender().sendMessage(StringUtils.colorize(level.getColor() + "[" + level.name() + "]: " + message)); Bukkit.getConsoleSender().sendMessage(StringUtils.colorize("&cHeadDB &8>> " + level.getColor() + "[" + level.name() + "]: " + message));
} }
public boolean isDebug() { public boolean isDebug() {
return this.debug; return this.debug;
} }
public static enum LogLevel { public enum LogLevel {
INFO, INFO,
WARNING, WARNING,
ERROR, ERROR,