Witam, dzisiaj zrobiłem skript ale gdy otwieram menu dropu to w Statystykach wszystko jest <none> a gdy wykopie netherstara to się pojawia ile netherstarów wykopałem i tak samo z pieniędzmi (nie sumą serwera)
Oto część w menu:
set {minedmoney} to single value "ServerMinedmoney" get of "/plugins/Drop/players.yml"
set {minedmoney.%player%} to single value "%player%.Minedmoney" get of "/plugins/Drop/players.yml"
set {netherstars} to single value "ServerNetherstars" get of "/plugins/Drop/players.yml"
set {netherstars.%player%} to single value "%player%.NetherStars" get of "/plugins/Drop/players.yml"
open chest with 4 rows named "&3Drop" to player
wait 3 ticks
format slot 0 of player with 1 of gold block named "&8###### &cSTATYSTYKI &8######" with lore "&8## &cTwoje:||&8## &cWykopane NetherStary: %{netherstars.%player%}%||&8## &cWykopane Pieniadze: %{minedmoney.%player%}%||&8## &cSerwera:||&8## &cWykopane NetherStary: %{netherstars}%||&8## &cWykopane Pieniadze: %{minedmoney}%" to close
a to czesc ktora miała blokować <none>:
on script load:
delete {minedmoney}
set {minedmoney} to single value "ServerMinedmoney" get of "/plugins/Drop/players.yml"
if {minedmoney} is not set:
set "ServerMinedmoney" to "0" in yaml file "plugins/Drop/players.yml"
delete {netherstars}
set {netherstars} to single value "ServerNetherstars" get of "/plugins/Drop/players.yml"
if {netherstars} is not set:
set "ServerNetherstars" to "0" in yaml file "plugins/Drop/players.yml"
loop all players:
delete {minedmoney}
set {minedmoney} to single value "%loop-player%.Minedmoney" get of "/plugins/Drop/players.yml"
if {minedmoney} is not set:
set "%loop-player%.Minedmoney" to "0" in yaml file "plugins/Drop/players.yml"
delete {netherstars}
set {netherstars} to single value "%loop-player%.Netherstars" get of "/plugins/Drop/players.yml"
if {netherstars} is not set:
set "%loop-player%.Netherstars" to "0" in yaml file "plugins/Drop/players.yml"
on join:
delete {minedmoney}
set {minedmoney} to single value "%player%.Minedmoney" get of "/plugins/Drop/players.yml" parsed as number
if {minedmoney} is not set:
set "%player%.Minedmoney" to "0" in yaml file "plugins/Drop/players.yml"
delete {netherstars}
set {netherstars} to single value "%player%.Netherstars" get of "/plugins/Drop/players.yml" parsed as number
if {netherstars} is not set:
set "%player%.Netherstars" to "0" in yaml file "plugins/Drop/players.yml"
Pytanie
Dadudze 0
Witam, dzisiaj zrobiłem skript ale gdy otwieram menu dropu to w Statystykach wszystko jest <none> a gdy wykopie netherstara to się pojawia ile netherstarów wykopałem i tak samo z pieniędzmi (nie sumą serwera)
Oto część w menu:
a to czesc ktora miała blokować <none>:
Odnośnik do komentarza
Udostępnij na innych stronach
8 odpowiedzi na to pytanie
Rekomendowane odpowiedzi