So, I’m really new to plugin development, and I’ve learned that youtube tutorials are somewhat outdated already. Some things I’ve figured out, but the getMaxHealth() method no longer works. What can I use instead?
Line of code:
DataTransactionResult res = target.offer(target.getHealthData().setHealth(target.getHealthData().getMaxHealth()));
Only the “getMaxHealth()” part has a red line under it.
Heh, thank you =) I’m still really new to coding in general, so I need to learn things slowly. Your fix however, still seems to cause an error at the last “.get”.
Error: The method get() is undefined for the type Key< MutableBoundedValue< Double>>