SergiFerry / PlayerNPC

PlayerNPC API for Spigot 1.17+
https://www.spigotmc.org/resources/playernpc.93625/
26 stars 6 forks source link

Error in the Console #11

Closed strich3 closed 2 years ago

strich3 commented 2 years ago

java.lang.NoSuchMethodError: 'void dev.sergiferry.playernpc.api.NPC$Personal.addCustomClickAction(dev.sergiferry.playernpc.api.NPC$Interact$ClickType, java.util.function.BiConsumer)


    dailyRewardnpc.addCustomClickAction(ClickType.RIGHT_CLICK, (x, y) -> {
        openDailyRewardMenu(player);
    });

Is something wrong with the code?

SergiFerry commented 2 years ago

You need to rebuild the artifacts, that's beacuse in the new version, its called the same but its not a void, because it returnes the custom action object, so you need to re compile