Skip to content

Commit

Permalink
fix weird formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MelanX committed Apr 19, 2024
1 parent 26a1aa9 commit 837654f
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ private static int removeSpawn(CommandSourceStack source, BlockPos pos) throws C
if (team.getPossibleSpawns().size() <= 1) {
component.append(" ").append(Component.translatable("skyblockbuilder.command.denied.modify_spawns1"));
}

source.sendSuccess(() -> component.withStyle(ChatFormatting.RED), false);
return 0;
case DEFAULT:
Expand All @@ -321,11 +322,12 @@ private static int removeSpawn(CommandSourceStack source, BlockPos pos) throws C
}

if (!team.removePossibleSpawn(pos)) {
source.sendSuccess(() -> Component.translatable("skyblockbuilder.command.error.remove_spawn0",
(team.getPossibleSpawns().size() <= 1
? Component.literal(" ").append(Component.translatable("skyblockbuilder.command.error.remove_spawn1"))
: "")
).withStyle(ChatFormatting.RED), false);
MutableComponent component = Component.translatable("skyblockbuilder.command.error.remove_spawn0");
if (team.getPossibleSpawns().size() <= 1) {
component.append(" ").append(Component.translatable("skyblockbuilder.command.error.remove_spawn1"));
}

source.sendSuccess(() -> component.withStyle(ChatFormatting.RED), false);
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/skyblockbuilder/lang/de_de.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"skyblockbuilder.command.error.no_player_added": "Kein Spieler zum Team hinzugefügt!",
"skyblockbuilder.command.error.wrong_position": "Positionen müssen in der Spawndimension sein.",
"skyblockbuilder.command.error.position_too_far_away": "Diese Position ist zu weit weg von der Teaminsel.",
"skyblockbuilder.command.error.remove_spawn0": "Du kannst diesen Spawnpunkt nicht entfernen.%s",
"skyblockbuilder.command.error.remove_spawn0": "Du kannst diesen Spawnpunkt nicht entfernen.",
"skyblockbuilder.command.error.remove_spawn1": "Zu wenig Spawnpunkte vorhanden.",
"skyblockbuilder.command.error.user_no_player": "Du bist kein Spieler. Lügner!",
"skyblockbuilder.command.error.teleport_across_dimensions": "Du darfst dich nicht zwischen Dimensionen teleportieren.",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/skyblockbuilder/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"skyblockbuilder.command.error.no_player_added": "No player added to the team!",
"skyblockbuilder.command.error.wrong_position": "Position needs to be in the spawn dimension.",
"skyblockbuilder.command.error.position_too_far_away": "This position is too far away from the team island.",
"skyblockbuilder.command.error.remove_spawn0": "You cannot remove that spawn point.%s",
"skyblockbuilder.command.error.remove_spawn0": "You cannot remove that spawn point.",
"skyblockbuilder.command.error.remove_spawn1": "There are not enough spawn points left.",
"skyblockbuilder.command.error.user_no_player": "You are not a player, but a mere liar!",
"skyblockbuilder.command.error.teleport_across_dimensions": "You are not allowed to teleport across dimensions.",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/skyblockbuilder/lang/es_es.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"skyblockbuilder.command.error.no_player_added": "¡Ningún jugador fue añadido al equipo!",
"skyblockbuilder.command.error.wrong_position": "La posición debe estar en la dimensión de aparición.",
"skyblockbuilder.command.error.position_too_far_away": "Ésta posición está demasiado lejos de la isla del equipo.",
"skyblockbuilder.command.error.remove_spawn0": "No es posible eliminar ese punto de aparación.%s",
"skyblockbuilder.command.error.remove_spawn0": "No es posible eliminar ese punto de aparación.",
"skyblockbuilder.command.error.remove_spawn1": "No quedan suficientes puntos de aparación.",
"skyblockbuilder.command.error.user_no_player": "¡No eres un jugador, sinó un mentiroso!",
"skyblockbuilder.command.error.teleport_across_dimensions": "No tienes permitido teletransportarte entre dimensiones.",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/skyblockbuilder/lang/fr_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"skyblockbuilder.command.error.no_player_added": "Aucun joueur ajouté à l'équipe !",
"skyblockbuilder.command.error.wrong_position": "La position doit être dans l'overworld.",
"skyblockbuilder.command.error.position_too_far_away": "Cette position est trop éloignée de l'île de l'équipe.",
"skyblockbuilder.command.error.remove_spawn0": "Vous ne pouvez pas supprimer ce point d'apparition. %s",
"skyblockbuilder.command.error.remove_spawn0": "Vous ne pouvez pas supprimer ce point d'apparition.",
"skyblockbuilder.command.error.remove_spawn1": "Il ne reste plus assez de points d'apparition.",
"skyblockbuilder.command.error.user_no_player": "Vous n'êtes pas un joueur, mais un simple menteur !",
"skyblockbuilder.command.error.teleport_across_dimensions": "Vous n'êtes pas autorisé à vous téléporter entre les dimensions.",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/skyblockbuilder/lang/ja_pn.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"skyblockbuilder.command.error.no_player_added": "チームに選手が追加されていない!",
"skyblockbuilder.command.error.wrong_position": "位置はオーバーワールドにある必要があります.",
"skyblockbuilder.command.error.position_too_far_away": "このポジションは、チームの島から遠すぎます.",
"skyblockbuilder.command.error.remove_spawn0": "このスポーンポイントを削除することはできません.%s",
"skyblockbuilder.command.error.remove_spawn0": "このスポーンポイントを削除することはできません.",
"skyblockbuilder.command.error.remove_spawn1": "スポーンポイントの数が足りません.",
"skyblockbuilder.command.error.user_no_player": "あなたはプレーヤーではなく、ただの嘘つきです!",
"skyblockbuilder.command.error.teleport_across_dimensions": "異なる次元にテレポートすることは許可されていません。",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/skyblockbuilder/lang/pt_br.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"skyblockbuilder.command.error.no_player_added": "Nenhum jogador adicionado ao equipe!",
"skyblockbuilder.command.error.wrong_position": "A posição precisa estar na dimensão de spawn.",
"skyblockbuilder.command.error.position_too_far_away": "Esta posição está muito longe da ilha do equipe.",
"skyblockbuilder.command.error.remove_spawn0": "Você não pode remover esse ponto de spawn.%s",
"skyblockbuilder.command.error.remove_spawn0": "Você não pode remover esse ponto de spawn.",
"skyblockbuilder.command.error.remove_spawn1": "Não há pontos de spawn suficientes.",
"skyblockbuilder.command.error.user_no_player": "Você não é um jogador, mas um mero mentiroso!",
"skyblockbuilder.command.error.teleport_across_dimensions": "Você não tem permissão para teleportar entre dimensões.",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/skyblockbuilder/lang/ru_ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"skyblockbuilder.command.error.no_player_added": "Игрок не был добавлен в команду!",
"skyblockbuilder.command.error.wrong_position": "Позиция должна быть в измерении спавна.",
"skyblockbuilder.command.error.position_too_far_away": "Позиция слишком далеко от острова команды.",
"skyblockbuilder.command.error.remove_spawn0": "Ты не можешь удалить эту точку спавна. %s",
"skyblockbuilder.command.error.remove_spawn0": "Ты не можешь удалить эту точку спавна.",
"skyblockbuilder.command.error.remove_spawn1": "Недостаточно точек спавна.",
"skyblockbuilder.command.error.user_no_player": "Ты не игрок, а простой лжец!",
"skyblockbuilder.command.error.teleport_across_dimensions": "Вам запрещено перемещаться между измерениями.",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/skyblockbuilder/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"skyblockbuilder.command.error.no_player_added": "没有玩家被添加到队伍中!",
"skyblockbuilder.command.error.wrong_position": "位置需要在出生维度内。",
"skyblockbuilder.command.error.position_too_far_away": "此位置离队伍岛屿太远。",
"skyblockbuilder.command.error.remove_spawn0": "你不能删除该出生点。%s",
"skyblockbuilder.command.error.remove_spawn0": "你不能删除该出生点。",
"skyblockbuilder.command.error.remove_spawn1": "剩余出生点不足。",
"skyblockbuilder.command.error.user_no_player": "你不是玩家,而是一个骗子!",
"skyblockbuilder.command.error.teleport_across_dimensions": "你不能跨维度传送。",
Expand Down

0 comments on commit 837654f

Please sign in to comment.