mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 07:37:43 +00:00
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:
parent
2ed4506074
commit
210e9e9732
@ -13,7 +13,8 @@ public final class PositionCommand implements CommandHandler {
|
|||||||
@Override
|
@Override
|
||||||
public void execute(Player sender, Player targetPlayer, List<String> args) {
|
public void execute(Player sender, Player targetPlayer, List<String> args) {
|
||||||
Position pos = targetPlayer.getPosition();
|
Position pos = targetPlayer.getPosition();
|
||||||
|
Position rot = targetPlayer.getRotation();
|
||||||
CommandHandler.sendTranslatedMessage(sender, "commands.position.success",
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,9 @@ public final class Tools {
|
|||||||
|
|
||||||
// Write txt files
|
// Write txt files
|
||||||
for (int i = 0; i < TextStrings.NUM_LANGUAGES; i++) {
|
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)) {
|
try (PrintWriter writer = new PrintWriter(new OutputStreamWriter(new FileOutputStream(fileName), StandardCharsets.UTF_8), false)) {
|
||||||
writer.write(handbookBuilders.get(i).toString());
|
writer.write(handbookBuilders.get(i).toString());
|
||||||
}
|
}
|
||||||
|
@ -207,8 +207,8 @@
|
|||||||
"description": "Grants or removes a permission for a user"
|
"description": "Grants or removes a permission for a user"
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"success": "Coordinates: %s, %s, %s\nScene ID: %s",
|
"success": "Coordinates: %s, %s, %s\nRotation:%s, %s, %s\nScene ID: %s",
|
||||||
"description": "Get coordinates"
|
"description": "Gets position and rotation information"
|
||||||
},
|
},
|
||||||
"quest": {
|
"quest": {
|
||||||
"added": "Quest %s added.",
|
"added": "Quest %s added.",
|
||||||
|
@ -207,8 +207,8 @@
|
|||||||
"description": "Da o quita un permiso a un jugador"
|
"description": "Da o quita un permiso a un jugador"
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"success": "Coordenadas: %s, %s, %s\nID del escenario: %s",
|
"success": "Coordenadas: %s, %s, %s\nRotación: %s, %s, %s\nID del escenario: %s",
|
||||||
"description": "Da las coordenadas en el escenario actual"
|
"description": "Obtener información sobre ubicación y rotación"
|
||||||
},
|
},
|
||||||
"quest": {
|
"quest": {
|
||||||
"added": "Misión %s añadida.",
|
"added": "Misión %s añadida.",
|
||||||
|
@ -207,8 +207,8 @@
|
|||||||
"description": "Accorde ou retire une permission a un utilisateur"
|
"description": "Accorde ou retire une permission a un utilisateur"
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"success": "Coordonées: %s, %s, %s\nID de la scène: %s",
|
"success": "Coordonées: %s, %s, %s\nRotatifs:%s, %s, %s\nID de la scène: %s",
|
||||||
"description": "Obtenir vos coordonnées"
|
"description": "Obtient des informations de position et de rotation"
|
||||||
},
|
},
|
||||||
"quest": {
|
"quest": {
|
||||||
"added": "Quête %s ajoutée.",
|
"added": "Quête %s ajoutée.",
|
||||||
|
@ -207,8 +207,8 @@
|
|||||||
"description": "ユーザーの権限を付与または削除します"
|
"description": "ユーザーの権限を付与または削除します"
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"success": "座標: %s、%s、%s\nシーンID: %s",
|
"success": "座標:%s、%s、%s\n回転:%s、%s、%s\nシーンID: %s",
|
||||||
"description": "座標を取得する"
|
"description": "位置と回転情報を取得します"
|
||||||
},
|
},
|
||||||
"quest": {
|
"quest": {
|
||||||
"added": "クエスト %s が追加されました。",
|
"added": "クエスト %s が追加されました。",
|
||||||
|
@ -207,8 +207,8 @@
|
|||||||
"description": "사용자에게 권한을 부여하거나 제거합니다."
|
"description": "사용자에게 권한을 부여하거나 제거합니다."
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"success": "좌표: %s, %s, %s\nScene ID: %s",
|
"success": "좌표: %s, %s, %s\n회전:%s, %s, %s\nScene ID: %s",
|
||||||
"description": "좌표를 출력합니다"
|
"description": "위치 및 회전 정보를 가져옵니다"
|
||||||
},
|
},
|
||||||
"quest": {
|
"quest": {
|
||||||
"added": "%s 퀘스트가 추가되었습니다.",
|
"added": "%s 퀘스트가 추가되었습니다.",
|
||||||
|
@ -207,8 +207,8 @@
|
|||||||
"description": "Dodaj lub usuń uprawnienia podanego gracza."
|
"description": "Dodaj lub usuń uprawnienia podanego gracza."
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"success": "Koordynaty: (%s, %s, %s).\nID sceny: %s.",
|
"success": "Koordynaty: (%s, %s, %s).\nKrążyć:%s, %s, %s\nID sceny: %s.",
|
||||||
"description": "Pokaż gdzie znajduje się dany gracz."
|
"description": "Pobiera informacje o pozycji i obrocie"
|
||||||
},
|
},
|
||||||
"quest": {
|
"quest": {
|
||||||
"added": "Zadanie %s zostało dodane.",
|
"added": "Zadanie %s zostało dodane.",
|
||||||
|
@ -207,8 +207,8 @@
|
|||||||
"description": "Acordă sau elimină o permisiune de la un utilizator."
|
"description": "Acordă sau elimină o permisiune de la un utilizator."
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"success": "Coordonate: %s, %s, %s\nScene ID: %s",
|
"success": "Coordonate: %s, %s, %s\nGravitează:%s, %s, %s\nScene ID: %s",
|
||||||
"description": "Obțineți coordonatele"
|
"description": "Obține informații despre poziție și rotație"
|
||||||
},
|
},
|
||||||
"quest": {
|
"quest": {
|
||||||
"added": "Misiunea %s adăugată.",
|
"added": "Misiunea %s adăugată.",
|
||||||
|
@ -207,7 +207,7 @@
|
|||||||
"description": "Добавляет (add) или удаляет (remove) разрешения у пользователя"
|
"description": "Добавляет (add) или удаляет (remove) разрешения у пользователя"
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"success": "Координаты: %s, %s, %s\nID сцены: %s",
|
"success": "Координаты: %s, %s, %s\nПоворот:%s, %s, %s\nID сцены: %s",
|
||||||
"description": "Позволяет получить координаты"
|
"description": "Позволяет получить координаты"
|
||||||
},
|
},
|
||||||
"quest": {
|
"quest": {
|
||||||
|
@ -181,7 +181,7 @@
|
|||||||
},
|
},
|
||||||
"killall": {
|
"killall": {
|
||||||
"scene_not_found_in_player_world": "未在玩家世界中找到此场景。",
|
"scene_not_found_in_player_world": "未在玩家世界中找到此场景。",
|
||||||
"kill_monsters_in_scene": "已杀死场景 %s 中的 %s 个怪物。",
|
"kill_monsters_in_scene": "已杀死 %s 个怪物。 [场景ID: %s ]",
|
||||||
"description": "杀死所有怪物"
|
"description": "杀死所有怪物"
|
||||||
},
|
},
|
||||||
"killCharacter": {
|
"killCharacter": {
|
||||||
@ -207,9 +207,8 @@
|
|||||||
"description": "添加或移除指定玩家的权限"
|
"description": "添加或移除指定玩家的权限"
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"success": "坐标:%s, %s, %s\n场景ID:%s",
|
"success": "坐标:%s, %s, %s\n旋转:%s, %s, %s\n场景ID:%s",
|
||||||
"description": "获取所在位置"
|
"description": "获取所在位置和旋转信息"},
|
||||||
},
|
|
||||||
"quest": {
|
"quest": {
|
||||||
"added": "已添加任务 %s。",
|
"added": "已添加任务 %s。",
|
||||||
"finished": "已完成任务 %s。",
|
"finished": "已完成任务 %s。",
|
||||||
|
@ -207,8 +207,8 @@
|
|||||||
"description": "指派或移除指定玩家的權限。"
|
"description": "指派或移除指定玩家的權限。"
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"success": "座標:%s, %s, %s\n場景ID:%s",
|
"success": "坐標:%s, %s, %s\n旋轉:%s, %s, %s\n場景ID:%s",
|
||||||
"description": "獲取目前所在位置的座標。"
|
"description": "獲取所在坐標和旋轉信息"
|
||||||
},
|
},
|
||||||
"quest": {
|
"quest": {
|
||||||
"added": "已添加任務 %s",
|
"added": "已添加任務 %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user