Mirror von
https://github.com/TheSilentPro/HeadDB.git
synchronisiert 2024-12-25 02:20:09 +01:00
push to 1.19.4 and enhance logging
Dieser Commit ist enthalten in:
Ursprung
49f3d0a279
Commit
d502d8406d
@ -1,6 +1,6 @@
|
||||
# HeadDB
|
||||
[![](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
|
||||
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/).
|
||||
@ -9,5 +9,4 @@ You may download it either via the [Releases Page](https://github.com/TheSilentP
|
||||
You may report issues on the [Issue Tracker](https://github.com/TheSilentPro/HeadDB/issues).
|
||||
|
||||
# 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>
|
||||
Alternatively you may view the [javadocs](https://javadocs.pages.dev/headdb/4.0.0/tsp/headdb/api/HeadAPI).
|
||||
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>
|
4
pom.xml
4
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>tsp.headdb</groupId>
|
||||
<artifactId>HeadDB</artifactId>
|
||||
<version>5.0.0-rc.3</version>
|
||||
<version>5.0.0-rc.4</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>HeadDB</name>
|
||||
@ -67,7 +67,7 @@
|
||||
<dependency>
|
||||
<groupId>com.google.code.gson</groupId>
|
||||
<artifactId>gson</artifactId>
|
||||
<version>2.10</version>
|
||||
<version>2.10.1</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
|
@ -3,10 +3,11 @@ package tsp.headdb.core.util;
|
||||
import org.bukkit.Bukkit;
|
||||
import tsp.smartplugin.utils.StringUtils;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class HeadDBLogger {
|
||||
|
||||
|
||||
private final boolean debug;
|
||||
|
||||
|
||||
public HeadDBLogger(boolean debug) {
|
||||
this.debug = debug;
|
||||
}
|
||||
@ -34,14 +35,14 @@ public class HeadDBLogger {
|
||||
if ((level == LogLevel.DEBUG || level == LogLevel.TRACE) && !debug) {
|
||||
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() {
|
||||
return this.debug;
|
||||
}
|
||||
|
||||
public static enum LogLevel {
|
||||
public enum LogLevel {
|
||||
INFO,
|
||||
WARNING,
|
||||
ERROR,
|
||||
@ -58,5 +59,5 @@ public class HeadDBLogger {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren