[SPIGOT-381] Selectors don't work in written books Created: 07/Jan/15  Updated: 16/Jan/15  Resolved: 16/Jan/15

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Lisa Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: 1.8, bug, spigot
Environment:

Windows 7; latest Spigot build



 Description   

When creating a written book with json formatting, selectors do not work.

Here's the command I'm using:

/give @p minecraft:written_book 1 0 {author:"",title:"Achievements & Statistics",pages:["{text:\"Spleef Wins: \",extra:[{score:{name:\"*\",objective:\"Wins\"},color:\"dark_blue\"}]}"]}

It also doesn't work with this command:

/give @p minecraft:written_book 1 0 {author:"",title:"Achievements & Statistics",pages:["{text:\"Spleef Wins: \",extra:[{score:{name:\"@p\",objective:\"Wins\"},color:\"dark_blue\"}]}"]}

Where the score is supposed to be, it just shows up blank. Alternatively, replacing the "score" option with just "selector", it shows up in the book as @p or *. However, it works if I manually input the username in place of @p or *.



 Comments   
Comment by Thinkofname [ 16/Jan/15 ]

Matches vanilla behaviour

Generated at Mon Apr 21 20:53:39 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.