9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2026-01-04 15:31:47 +00:00

fix build

This commit is contained in:
XiaoMoMi
2024-10-06 22:48:21 +08:00
parent f935a61958
commit 10206e8b2a
13 changed files with 46 additions and 16 deletions

View File

@@ -70,7 +70,7 @@ public abstract class AbstractCommandFeature<C> implements CommandFeature<C> {
}
@Override
public CustomNameplatesCommandManager<C> getCustomFishingCommandManager() {
public CustomNameplatesCommandManager<C> getCustomNameplatesCommandManager() {
return commandManager;
}

View File

@@ -37,7 +37,7 @@ public interface CommandFeature<C> {
void handleFeedback(C sender, TranslatableComponent.Builder key, Component... args);
CustomNameplatesCommandManager<C> getCustomFishingCommandManager();
CustomNameplatesCommandManager<C> getCustomNameplatesCommandManager();
CommandConfig<C> getCommandConfig();
}

View File

@@ -37,7 +37,7 @@ import java.util.List;
import java.util.Locale;
/**
* The dependencies used by CustomFishing.
* The dependencies used by CustomNameplates.
*/
public enum Dependency {

View File

@@ -28,7 +28,7 @@ package net.momirealms.customnameplates.common.dependency;
import com.google.gson.JsonElement;
/**
* Applies CustomFishing specific behaviour for {@link Dependency}s.
* Applies CustomNameplates specific behaviour for {@link Dependency}s.
*/
public class DependencyRegistry {

View File

@@ -31,7 +31,7 @@ import java.net.URLClassLoader;
/**
* A classloader "isolated" from the rest of the Minecraft server.
*
* <p>Used to load specific CustomFishing dependencies without causing conflicts
* <p>Used to load specific CustomNameplates dependencies without causing conflicts
* with other plugins, or libraries provided by the server implementation.</p>
*/
public class IsolatedClassLoader extends URLClassLoader {

View File

@@ -36,7 +36,7 @@ import java.util.stream.Stream;
public class MiniMessageTranslatorImpl implements MiniMessageTranslator {
private static final Key NAME = Key.key("customfishing", "main");
private static final Key NAME = Key.key("customnameplates", "main");
static final MiniMessageTranslatorImpl INSTANCE = new MiniMessageTranslatorImpl();
final TranslatableComponentRenderer<Locale> renderer = TranslatableComponentRenderer.usingTranslationSource(this);
private final Set<Translator> sources = Collections.newSetFromMap(new ConcurrentHashMap<>());

View File

@@ -30,7 +30,7 @@ import java.nio.file.Path;
import java.util.function.Supplier;
/**
* Interface representing the main CustomFishing plugin.
* Interface representing the main CustomNameplates plugin.
*/
public interface NameplatesPlugin {

View File

@@ -26,9 +26,9 @@
package net.momirealms.customnameplates.common.plugin.logging;
/**
* Represents the logger instance being used by CustomFishing on the platform.
* Represents the logger instance being used by CustomNameplates on the platform.
*
* <p>Messages sent using the logger are sent prefixed with the CustomFishing tag,
* <p>Messages sent using the logger are sent prefixed with the CustomNameplates tag,
* and on some implementations will be colored depending on the message type.</p>
*/
public interface PluginLogger {

View File

@@ -84,8 +84,8 @@ public abstract class AbstractJavaScheduler<T> implements SchedulerAdapter<T> {
this.scheduler.shutdown();
try {
if (!this.scheduler.awaitTermination(1, TimeUnit.MINUTES)) {
this.plugin.getPluginLogger().severe("Timed out waiting for the CustomFishing scheduler to terminate");
reportRunningTasks(thread -> thread.getName().equals("customfishing-scheduler"));
this.plugin.getPluginLogger().severe("Timed out waiting for the CustomNameplates scheduler to terminate");
reportRunningTasks(thread -> thread.getName().equals("nameplates-scheduler"));
}
} catch (InterruptedException e) {
e.printStackTrace();
@@ -97,7 +97,7 @@ public abstract class AbstractJavaScheduler<T> implements SchedulerAdapter<T> {
this.worker.shutdown();
try {
if (!this.worker.awaitTermination(1, TimeUnit.MINUTES)) {
this.plugin.getPluginLogger().severe("Timed out waiting for the CustomFishing worker thread pool to terminate");
this.plugin.getPluginLogger().severe("Timed out waiting for the CustomNameplates worker thread pool to terminate");
reportRunningTasks(thread -> thread.getName().startsWith("nameplates-worker-"));
}
} catch (InterruptedException e) {