Skip to content

Commit

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

0 comments on commit 145ec29

Please sign in to comment.