runefist
Verified Member
Dear PK,
NAICE! I love how you guys test your code, I srrsly do!
Oke so what is the problem?
If a console/commandblock/ anything that is not a player changes your bending it won't save in the database, why?
Well... Very simple
This line of code:
GeneralMethods.removeUnusableAbilities(sender);
It gets triggered when you change bending. What happens? It does not removeUnusableAbilities from the target.... no it changes em from the sender who does it. So it simple gives an error when it is a console command.
BTW this is located in the ChooseCommand class at line 106.
Kind regards,
runefist
NAICE! I love how you guys test your code, I srrsly do!
Oke so what is the problem?
If a console/commandblock/ anything that is not a player changes your bending it won't save in the database, why?
Well... Very simple
This line of code:
GeneralMethods.removeUnusableAbilities(sender);
It gets triggered when you change bending. What happens? It does not removeUnusableAbilities from the target.... no it changes em from the sender who does it. So it simple gives an error when it is a console command.
BTW this is located in the ChooseCommand class at line 106.
Kind regards,
runefist