SHOW:
|
|
- or go back to the newest paste.
1 | on death: | |
2 | set {_tags::*} to scoreboard tags of victim | |
3 | loop {_tags::*}: | |
4 | if loop-value contains "TIN": | |
5 | set {_valueG} to loop-value | |
6 | replace "TIN" with "" in {_valueG} | |
7 | set {fgold.%attacker%} to {_valueG} parsed as number | |
8 | - | message "&6+ %{fgold.%attacker%}%Gold" to attacker |
8 | + | message "&6+ %{fgold.%attacker%}%TIN" to attacker |
9 | - | command "scoreboard players add %attacker% allmoney %{allgold.%attacker%}%" |
9 | + | command "scoreboard players add %attacker% allmoney %{fgold.%attacker%}%" |
10 | delete {fgold.%attacker%} |