NoSuchMethodError Coding help

  • Thread starter Deleted member 2095
  • Start date
D

Deleted member 2095

Guest
I'm using a plugin called NXBooster
This plugin lets you fly in the direction you see. The iron blocks are weak, the gold blocks are a little strong, and the diamonds are strong.
Since it is an old plugin after development support, error messages are always repeated on the console when using the plugin.
I will attach the plugin file and error message, so please let me know the solution to this error.
(I can handle little Eclipse.)

plugin link: https://drive.google.com/open?id=1MBnI0rNWpCdgZ6KwuAQy1vpH1cPNl9Fp

ERROR.PNG
 

Sleepybear

Moderator
Staff member
There is a problem in booster.Main.onFallDamage(), it seems to think the getCause() method doesn't exist, which is odd since it clearly does in the cn.nukkit.event.entity.EntityDamageEvent class.

What version of nukkit are you running?
 

Sleepybear

Moderator
Staff member
It appears 3 years ago the method signature changed from public int getCause() to using an ENUM DamageCause, which is probably why it broke.
 
Top