fix broadcasting added points
This commit is contained in:
parent
9e7000054b
commit
2f87ea925e
2 changed files with 4 additions and 4 deletions
|
|
@ -44,18 +44,18 @@
|
|||
<span class="name">player name</span>
|
||||
<div class="admin-only">
|
||||
(<span class="points">points</span> pts) (<span class="tokens">tokens</span> tks)
|
||||
<button data-eval="send('control', {target: client.id, action: 'monitor'})">
|
||||
<button data-eval="conn.send('control', {target: client.id, action: 'monitor'})">
|
||||
monitor
|
||||
</button>
|
||||
<button
|
||||
data-eval="client.points += named.points.valueAsNumber;
|
||||
send('points', {id: client.id, points: client.points})"
|
||||
conn.send('points', {id: client.id, points: client.points})"
|
||||
>
|
||||
add points
|
||||
</button>
|
||||
<button
|
||||
data-eval="client.tokens += named.tokens.valueAsNumber;
|
||||
send('tokens', {id: client.id, tokens: client.tokens})"
|
||||
conn.send('tokens', {id: client.id, tokens: client.tokens})"
|
||||
>
|
||||
add tokens
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue