Compare commits
9 Commits
2500240263
...
c6764ad0af
Author | SHA1 | Date |
---|---|---|
Xaver106 | c6764ad0af | |
renovate[bot] | c57d784df7 | |
xaver106 | 6f857c917a | |
xaver106 | 3fed8ba970 | |
xaver106 | 0eef7220a6 | |
xaver106 | fe37fe3c10 | |
xaver106 | 58378dd900 | |
xaver106 | 724c8a6148 | |
xaver106 | 197fbb6617 |
|
@ -41,7 +41,9 @@ import java.io.IOException;
|
|||
import java.lang.management.ManagementFactory;
|
||||
import java.lang.management.RuntimeMXBean;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@CommandDeclaration(command = "debugpaste",
|
||||
aliases = "dp",
|
||||
|
@ -170,6 +172,21 @@ public class DebugPaste extends SubCommand {
|
|||
);
|
||||
}
|
||||
|
||||
final Path langDir = PlotSquared.platform().getDirectory().toPath().resolve("lang");
|
||||
if (Files.isDirectory(langDir)) {
|
||||
try (Stream<Path> files = Files.list(langDir)) {
|
||||
files.filter(Files::isRegularFile)
|
||||
.filter(path -> path.getFileName().toString().startsWith("messages_") &&
|
||||
path.getFileName().toString().endsWith(".json")
|
||||
).forEach(path -> {
|
||||
try {
|
||||
incendoPaster.addFile(path.toFile());
|
||||
} catch (IOException ignored) {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
final String rawResponse = incendoPaster.upload();
|
||||
final JsonObject jsonObject =
|
||||
|
|
|
@ -37,7 +37,7 @@ shadow = "8.1.1"
|
|||
grgit = "4.1.1"
|
||||
spotless = "6.25.0"
|
||||
nexus = "2.0.0"
|
||||
runPaper = "2.2.3"
|
||||
runPaper = "2.2.4"
|
||||
|
||||
[libraries]
|
||||
# Platform expectations
|
||||
|
|
Loading…
Reference in New Issue