Added a directive to fix some minor bugs (#1744)

* Pull request made after merging the latest version

* Update src/main/resources/languages/ja-JP.json
This commit is contained in:
Kawaa
2022-09-05 22:12:38 +08:00
committed by AnimeGitB
parent 2ed4506074
commit 210e9e9732
12 changed files with 25 additions and 23 deletions

View File

@@ -13,7 +13,8 @@ public final class PositionCommand implements CommandHandler {
@Override
public void execute(Player sender, Player targetPlayer, List<String> args) {
Position pos = targetPlayer.getPosition();
Position rot = targetPlayer.getRotation();
CommandHandler.sendTranslatedMessage(sender, "commands.position.success",
pos.getX(), pos.getY(), pos.getZ(), targetPlayer.getSceneId());
pos.getX(), pos.getY(), pos.getZ(), rot.getX(), rot.getY(), rot.getZ(), targetPlayer.getSceneId());
}
}

View File

@@ -97,7 +97,9 @@ public final class Tools {
// Write txt files
for (int i = 0; i < TextStrings.NUM_LANGUAGES; i++) {
final String fileName = "./GM Handbook - %s.txt".formatted(TextStrings.ARR_LANGUAGES[i]);
File GMHandbookOutputpath=new File("./GM Handbook");
GMHandbookOutputpath.mkdir();
final String fileName = "./GM Handbook/GM Handbook - %s.txt".formatted(TextStrings.ARR_LANGUAGES[i]);
try (PrintWriter writer = new PrintWriter(new OutputStreamWriter(new FileOutputStream(fileName), StandardCharsets.UTF_8), false)) {
writer.write(handbookBuilders.get(i).toString());
}