9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2025-12-19 15:09:23 +00:00

small changes

This commit is contained in:
XiaoMoMi
2024-02-24 21:16:17 +08:00
parent 2e90d02166
commit 39e9d40e3e
3 changed files with 3 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ public abstract class URLClassLoaderAccess {
public abstract void addURL(@NonNull URL url);
private static void throwError(Throwable cause) throws UnsupportedOperationException {
throw new UnsupportedOperationException("LuckPerms is unable to inject into the plugin URLClassLoader.\n" +
throw new UnsupportedOperationException("CustomNameplates is unable to inject into the plugin URLClassLoader.\n" +
"You may be able to fix this problem by adding the following command-line argument " +
"directly after the 'java' command in your start script: \n'--add-opens java.base/java.lang=ALL-UNNAMED'", cause);
}

View File

@@ -130,7 +130,7 @@ public class JarInJarClassLoader extends URLClassLoader {
// on posix systems by default this is only read/writable by the process owner
Path path;
try {
path = Files.createTempFile("luckperms-jarinjar", ".jar.tmp");
path = Files.createTempFile("customnameplates-jarinjar", ".jar.tmp");
} catch (IOException e) {
throw new LoadingException("Unable to create a temporary file", e);
}

View File

@@ -336,7 +336,7 @@ public class PlaceholderManagerImpl implements PlaceholderManager {
entry.getKey(),
SwitchText.builder()
.toParse(Objects.requireNonNull(innerSection.getString("switch")))
.defaultValue(innerSection.getString("default"))
.defaultValue(innerSection.getString("default", ""))
.valueMap(valueMap)
.build()
);