Closed Xemorr closed 4 years ago
NPC
is a bad name for your class, as that's the same class name of the Citizens NPC object.I'm using 2.0.25-SNAPSHOT in my pom.xml, but I'll update to 2.0.26 and see if it fixes it. I'll rename NPC to BaseTrait as well.
I updated to 2.0.26-SNAPSHOT in my pom and I'm using the latest build as you linked to and it has exactly the same behavior. I created a new NPC and applied my talker trait, and it was the same.
This is a feature request, because PersistenceLoader doesn't support superclasses yet.
Thanks fullwall, Any ETA on when this will be fixed, or should I just build in the @Persist attributes into each of my classes :(
I'll need to work out a strategy for doing it properly - might take a few days. In the meantime, just build it into your classes.
Just pushed a simple implementation that pulls in superclasses - no namespacing as yet.
My issue is: I have an abstract class called NPC with some persist fields. `public abstract class NPC extends Trait {
}
and a trait that extends this NPC
public class Talker extends NPC {} `
The issue is, only the traits inside of Talker are actually saved to the config. talker: messages: '0': Hello! This is the default message '1': 'Hi hi hih ih ih ih i '
The output of command
/version
on my server is: This server is running Paper version git-Paper-655 (MC: 1.13.2) (Implementing API version 1.13.2-R0.1-SNAPSHOT) The output of command/version citizens
on my server is: Citizens version 2.0.25-SNAPSHOT (build 1709)