Hello! I am developing a server, and I need to be able to set player stats e.g. totalBatsKilled so that I can use that variable for other code. Please help!
I haven't tried it but I think this will do it. Player#setStatistic(@NotNull Statistic statistic,@NotNull EntityType entityType,int newValue)
I tried this and looked it up, and this is what I found: p.setStatistic(Statistic statistic, EntityType entityType, int newValue); Can you please help me understand what to change all of these values to? I got it to work, thanks! EDIT by Moderator: merged posts, please use the edit button instead of double posting.
@AlpacaKyle Scroll up to the top of this page, then to the right you shoud see some text that says "Thread Tools", press that and change the title, you should be able to set the title prefix to solved.