mirror of
https://github.com/Xiao-MoMi/Custom-Nameplates.git
synced 2025-12-19 23:19:15 +00:00
small changes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user