Improves Json util class: ability to add TypeAdapterFactory on the fly.
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
package fr.pandacube.lib.bungee.backup;
|
||||
|
||||
import fr.pandacube.lib.core.backup.BackupProcess;
|
||||
import fr.pandacube.lib.util.Log;
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
|
||||
import java.io.File;
|
||||
import java.text.DateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.function.BiPredicate;
|
||||
|
||||
public class BungeeWorkdirProcess extends BackupProcess {
|
||||
@@ -22,7 +18,7 @@ public class BungeeWorkdirProcess extends BackupProcess {
|
||||
|
||||
|
||||
public BiPredicate<File, String> getFilenameFilter() {
|
||||
return new BiPredicate<File, String>() {
|
||||
return new BiPredicate<>() {
|
||||
@Override
|
||||
public boolean test(File file, String path) {
|
||||
if (new File(getSourceDir(), "logs").equals(file))
|
||||
|
@@ -1,6 +1,5 @@
|
||||
package fr.pandacube.lib.bungee.commands;
|
||||
|
||||
import fr.pandacube.lib.bungee.PandaLibBungee;
|
||||
import fr.pandacube.lib.chat.Chat;
|
||||
import fr.pandacube.lib.commands.BrigadierDispatcher;
|
||||
import net.kyori.adventure.text.ComponentLike;
|
||||
@@ -21,6 +20,10 @@ public class BungeeBrigadierDispatcher extends BrigadierDispatcher<CommandSender
|
||||
|
||||
private static BungeeBrigadierDispatcher instance = null;
|
||||
|
||||
/**
|
||||
* Gets the instance of {@link BungeeBrigadierDispatcher}.
|
||||
* @return the instance of {@link BungeeBrigadierDispatcher}.
|
||||
*/
|
||||
public static synchronized BungeeBrigadierDispatcher getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
Reference in New Issue
Block a user