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);
|
public abstract void addURL(@NonNull URL url);
|
||||||
|
|
||||||
private static void throwError(Throwable cause) throws UnsupportedOperationException {
|
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 " +
|
"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);
|
"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
|
// on posix systems by default this is only read/writable by the process owner
|
||||||
Path path;
|
Path path;
|
||||||
try {
|
try {
|
||||||
path = Files.createTempFile("luckperms-jarinjar", ".jar.tmp");
|
path = Files.createTempFile("customnameplates-jarinjar", ".jar.tmp");
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new LoadingException("Unable to create a temporary file", e);
|
throw new LoadingException("Unable to create a temporary file", e);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -336,7 +336,7 @@ public class PlaceholderManagerImpl implements PlaceholderManager {
|
|||||||
entry.getKey(),
|
entry.getKey(),
|
||||||
SwitchText.builder()
|
SwitchText.builder()
|
||||||
.toParse(Objects.requireNonNull(innerSection.getString("switch")))
|
.toParse(Objects.requireNonNull(innerSection.getString("switch")))
|
||||||
.defaultValue(innerSection.getString("default"))
|
.defaultValue(innerSection.getString("default", ""))
|
||||||
.valueMap(valueMap)
|
.valueMap(valueMap)
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user