fix version & also make strings use escape codes

This commit is contained in:
Badbird-5907
2022-06-17 21:16:00 -04:00
parent 5bfd9f9a8e
commit 855d6ede79
2 changed files with 12 additions and 2 deletions

View File

@@ -7,8 +7,8 @@ import java.util.Locale;
public class ChatUtils {
public static final String LINE = ChatColor.GRAY + "------------------------------------------------";
public static final String BULLET = "";
public static final String BULLET_FORMATTED = ChatColor.GRAY + " " + ChatColor.RESET;
public static final String BULLET = "\u25AA";
public static final String BULLET_FORMATTED = ChatColor.GRAY + " \u25AA " + ChatColor.RESET;
public static final String EXCEPTION_MESSAGE = ChatColor.RED + "An exception has occured. Please try again.";
public static final NumberFormat NUMBER_FORMAT = NumberFormat.getNumberInstance(Locale.US);

View File

@@ -16,10 +16,20 @@ dependencies {
implementation(project(":TerminatorPlus-API"))
}
tasks.processResources {
val props = mapOf("version" to version)
inputs.properties(props)
filteringCharset = Charsets.UTF_8.name() // We want UTF-8 for everything
filesMatching("plugin.yml") {
expand(props)
}
}
tasks.jar {
from(configurations.compileClasspath.get().map { if (it.isDirectory()) it else zipTree(it) })
archiveFileName.set(jarName + ".jar")
}
//TODO currently, the resources are in src/main/resources, because gradle is stubborn and won't include the resources in TerminatorPlus-Plugin/src/main/resources, will need to fix
/*