Major changes

- Convert prefixes to Component
- Styling improvements to the list command
- Fix tab completing on plex command
- Allow console to check ranks of other players
- Add coloring in tab for admins
- Add color field to ranks and titles
- Fix debug logging not working
This commit is contained in:
2022-03-17 20:18:35 -05:00
parent 3c0b79ba06
commit 06e51926be
18 changed files with 155 additions and 74 deletions

View File

@ -1,13 +1,11 @@
package dev.plex.util;
import dev.plex.PlexBase;
import dev.plex.Plex;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
public class PlexLog extends PlexBase
public class PlexLog
{
private static final boolean debugEnabled = plugin.config.getBoolean("debug");
public static void log(String message, Object... strings)
{
for (int i = 0; i < strings.length; i++)
@ -41,7 +39,7 @@ public class PlexLog extends PlexBase
message = message.replace("{" + i + "}", strings[i].toString());
}
}
if (debugEnabled)
if (Plex.get().config.getBoolean("debug"))
{
Bukkit.getConsoleSender().sendMessage(String.format(ChatColor.DARK_PURPLE + "[Plex Debug] " + ChatColor.GOLD + "%s", message));
}