1.14.4 CitizensAPI How to make NPC talk?

Discussion in 'Spigot Plugin Development' started by kinukin, Feb 4, 2020.

  1. How do I make an npc talk using CitizensAPI?

    This is what I got so far but it doesn't work.

    Code (Text):
    npc.addTrait(Text.class);    
    npc.getTrait(Text.class).add("Hi");
    npc.getTrait(Text.class).toggle();
     
    #1 kinukin, Feb 4, 2020
    Last edited: Feb 4, 2020