mirror of
https://github.com/ColdeZhang/Dominion.git
synced 2025-04-19 21:20:22 +08:00
Compare commits
1 Commits
v4.1.2-bet
...
master
Author | SHA1 | Date | |
---|---|---|---|
cc2c14198a |
@ -15,7 +15,7 @@ libraries += "com.zaxxer:HikariCP:6.2.1"
|
||||
|
||||
|
||||
group = "cn.lunadeer"
|
||||
version = "4.1.2-beta"
|
||||
version = "4.1.3-beta"
|
||||
|
||||
java {
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
||||
|
@ -130,7 +130,7 @@ public class Others {
|
||||
return true;
|
||||
} else {
|
||||
String msg = formatString(Language.othersText.noPermissionForFlag, flag.getDisplayName(), flag.getDescription());
|
||||
msg = "&#FF0000" + "&l" + msg;
|
||||
msg = "&4" + "&l" + msg;
|
||||
MessageDisplay.show(player, MessageDisplay.Place.valueOf(Configuration.pluginMessage.noPermissionDisplayPlace.toUpperCase()), msg);
|
||||
if (event != null) {
|
||||
event.setCancelled(true);
|
||||
|
@ -38,10 +38,13 @@ public class Misc {
|
||||
return classesInPackage;
|
||||
}
|
||||
String packageDirPath = packageDir.getPath();
|
||||
XLogger.debug("packageDirPath raw: {0}", packageDirPath);
|
||||
// if the package is in a jar file, unpack it and list the classes
|
||||
packageDirPath = packageDirPath.substring(0, packageDirPath.indexOf("jar!") + 4);
|
||||
packageDirPath = packageDirPath.replace("file:", "");
|
||||
packageDirPath = packageDirPath.replace("!", "");
|
||||
packageDirPath = java.net.URLDecoder.decode(packageDirPath, java.nio.charset.StandardCharsets.UTF_8);
|
||||
XLogger.debug("packageDirPath processed: {0}", packageDirPath);
|
||||
// unpack the jar file
|
||||
XLogger.debug("Unpacking class in jar: {0}", packageDirPath);
|
||||
File jarFile = new File(packageDirPath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user