Mirror von
https://github.com/TheSilentPro/HeadDB.git
synchronisiert 2024-12-25 18:40:07 +01:00
push to 1.19.4 and enhance logging
Dieser Commit ist enthalten in:
Ursprung
49f3d0a279
Commit
d502d8406d
@ -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/).
|
||||||
@ -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).
|
You may report issues on the [Issue Tracker](https://github.com/TheSilentPro/HeadDB/issues).
|
||||||
|
|
||||||
# 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).
|
|
4
pom.xml
4
pom.xml
@ -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>
|
||||||
|
|
||||||
|
@ -3,10 +3,11 @@ 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;
|
||||||
|
|
||||||
public HeadDBLogger(boolean debug) {
|
public HeadDBLogger(boolean debug) {
|
||||||
this.debug = debug;
|
this.debug = 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,
|
||||||
@ -58,5 +59,5 @@ public class HeadDBLogger {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren