xF3d33 / UltimateTeams

https://modrinth.com/plugin/ultimate-teams
GNU General Public License v3.0
5 stars 5 forks source link

/team leave, Not saving changes. #14

Closed Feryc-Projects closed 1 month ago

Feryc-Projects commented 8 months ago

When a player uses /team leave they will successfully have left the team, but after a server restart they are back in the team they left

xF3d33 commented 8 months ago

Hello, do you see any error in the console when the player uses the command or at startup? are you using mysql or sqlite

Feryc-Projects commented 8 months ago

Well there's no errors, And it's with mysql lite and mysql.

Am i correct it's because the teamLeaveSubCommand class is missing plugin.runAsync(() -> plugin.getDatabase().updateTeam(team));

xF3d33 commented 8 months ago

yes if it is missing in the class and in the handler you are correct. I'm currently working on a new branch, but I'll check and push an update for this