I am building a TPA system for my server and i got it all working so that players can tp around and in my singleplayer test world it is flawless but on the server there is a bug that players score isn't being changed even though it does on singleplayer and tping to random entites.
1.tp @a[score_TPAcheck=200,score_TPAcheck_min=1,score_TPA_min=0,score_TPA=0] @a[score_TPA=1,score_TPA_min=1]
2.scoreboard players set @a[score_TPA=1,score_TPA_min=1] TPAcheck 200
3.scoreboard players remove @a[score_TPAcheck_min=1,score_TPAcheck=200] TPAcheck 1
4.stats block ~ ~-2 ~-1 set SuccessCount Success TPSuccess
5a.scoreboard players test Success TPSuccess 1 1
5b.scoreboard players set @a[score_TPAcheck=200,score_TPAcheck_min=1] TPAcheck 0
(only activated when 5a is true)
6.scoreboard players reset @a[score_TPAcheck=0,score_TPAcheck_min=0] TPAcheck
this appears to me like it should work and the tp system does but what doesn't is when a player accepts the TPA 5b doesn't happen. therefore both players stay on the scoreboard until they count down to zero naturally.