#(evilcognac) java.lang.IllegalArgumentException: Trait name null already registered

21 messages · Page 1 of 1 (latest)

cold turret
#

I am registering 2 traits with different names passed in their super but i get this erroir java.lang.IllegalArgumentException: Trait name null already registered

flat onyxBOT
#

(evilcognac) java.lang.IllegalArgumentException: Trait name null already registered

flat onyxBOT
#

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.

cold turret
#

It works if only one trait is registered

thick bear
#

@cold turret post the traits and registration code

cold turret
#
    private void registerCitizensTraits(TraitInfo... traits) {
        for (final TraitInfo trait : traits) {
            CitizensAPI.getTraitFactory().registerTrait(trait);
        }
    }
#
    public BlackjackDealerTrait() {
        super("blackjackdealer");
    }
#
    public RouletteDealerTrait() {
        super("roulettedealer");
    }
#

@thick bear is this a citizens bug or ami doing smth wrong

thick bear
cold turret
thick bear
thick bear
#

@cold turret please try to give the full code context instead of just snippets

sullen sealBOT
#
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.)

#

@cold turret

cold turret
#

didnt have it

#

whats the point of having the annotation and the super

thick bear
cold turret
#

snm