Skip to content

Commit

Permalink
fix: 改行ができていなかったのを直す
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Dec 19, 2023
1 parent 145ec29 commit 716e775
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ object StickCommand {
val executor: TabExecutor = playerCommandBuilder
.buildWithExecutionF { context =>
// 初見プレイヤー用とは別に簡潔な説明
val stickLore = List(
"""棒を持って右クリックもしくは
|左クリックでメニューを開きます。""".stripMargin,
"各メニューの詳細は公式サイトで確認できます。"
)
val stickLore = List("棒を持って右クリックもしくは", "左クリックでメニューを開きます。", "各メニューの詳細は公式サイトで確認できます。")
val stickItemStack = new ItemStack(Material.STICK, 1).tap { itemStack =>
import itemStack._
val meta = getItemMeta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,16 @@ class PlayerJoinListener extends Listener {
val inv = player.getInventory
// 初見プレイヤー向けの Lore (説明文) を設定
// /stick で入手できる木の棒は、簡略化された説明文にしておく。
val stickLore = List("""この棒を持って右クリックもしくは
|左クリックするとメニューが開きます。
|メニューからはいろんな機能が使えます。
|試してみよう。
|
|この棒をなくしても /stick コマンドを
|実行すると再入手できます。
|ヒント: もしサーバー内で迷子になったら /spawn
| コマンドを実行することでいつでも戻れます。""".stripMargin)
val stickLore = List(
"この棒を持って右クリックもしくは",
"左クリックするとメニューが開きます。",
"試してみよう。",
"",
"この棒をなくしても /stick コマンドを",
"実行すると再入手できます。",
"ヒント: もしサーバー内で迷子になったら /spawn",
"コマンドを実行することでいつでも戻れます。"
)
val stick = new ItemStack(Material.STICK, 1).tap { itemStack =>
import itemStack._
val meta = getItemMeta
Expand Down

0 comments on commit 716e775

Please sign in to comment.