#(BigKy) no implementation set- Trouble using Citizens API

37 messages · Page 1 of 1 (latest)

solemn walrus
#

Hello,
I am trying to use the api in a project, but whenever I run my plugin the first line where I use a CitizensAPI method I get an error that no implementation has been set and the server stops. I have Citizens as a dependency in plugin.yml and have the jar in plugins. On the wiki I ensured that I avoided all the common mistakes. Where I am going wrong?

vocal anvilBOT
#

(BigKy) no implementation set- Trouble using Citizens API

vocal anvilBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

young mulch
#

!logs

grave wrenBOT
# young mulch !logs
Info: logs

Please post your full latest log file.

Background Info: One of the most helpful tools to identifying the source of a problem is your server logs file! Logs contain all sorts of important information like server and plugin versions, any error messages, and a lot more important information (More Info).

How To: Your log can be found in the logs folder within your server folder. The most recent log is a text file labeled latest.log. To get help using these logs, please open that file in a text editor and copy all of the text, then open https://paste.denizenscript.com/New/Log and paste the text into the box on the page. Then click "Submit" and copy the URL and paste that back into this channel.

Please do not upload the file to Discord or to other pastebin services, use the log pastebin linked above.

young mulch
#

also send your plugin.yml through

solemn walrus
young mulch
#

@solemn walrus hmm, I forget how paper works these days

#

maybe just wait for CitizensEnableEvent?

lone coral
solemn walrus
#

I had that event, but it seems like it never runs. I think because I have it as a dependency the plugin is enabled before my plugin runs, the event is never caught

lone coral
#

They have their own separate system

young mulch
lone coral
grave wrenBOT
# lone coral !checklog https://paste.denizenscript.com/View/108121
Server Version

Paper version git-Paper-478 (MC: 1.19.4)-- (Outdated build, behind by 3... Current build is 481)

Plugin Version(s)

Citizens v2.0.31-SNAPSHOT (build 3004) -- (Current build :white_check_mark:)

Checked For

@lone coral

Potentially Bad Line(s)

[07:35:14] [Server thread/ERROR]: Error occurred while enabling SMP5 v1.0-SNAPSHOT (Is it up to date?) :warning: Log contains error messages.

young mulch
#

yeah good point

#

need to ensure citizens code is only touched after onEnable

solemn walrus
young mulch
#

@solemn walrus what about your StigglesNPC code

solemn walrus
#

Alright, I moved citizens code out of onEnable and it did not give the same error. Now the error is a null pointer exception when trying to set the skin trait of an NPC

solemn walrus
#

And heres the new error

young mulch
#

@solemn walrus ok, the NPE is an error in your code I'm guessing

warm oarBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@solemn walrus

solemn walrus
#

Yeah I'll figure it out haha. Thanks for the help!