Problem/Bug Citizens + Denizen aren't working

Discussion in 'Bukkit Help' started by ivso92, Nov 8, 2020.

  1. Offline

    ivso92

    Hello there.
    I've installed Citizens (version 2.0.27) and Denizen on my server (spigot 1.16.2) and use these commands:
    /npc create [name]
    /npc assignment --set Cookies
    Script 'Cookies' is the exmaple I found in Google:
    Code:
    Cookies:
      type: assignment
      interact scripts:
      - 100 Cookie Handler
    
    Cookie Handler:
      type: interact
      steps:
        'Spreading the Word*':
          click trigger:
            script:
            - random 3
            - chat 'I like cookies!'
            - chat 'MMmm.. cookies are favorite!'
            - chat 'Cocoa and wheat me freak!'
          chat trigger:
            'Cookies':
              trigger: 'I love /cookie/s!'
              script:
              - chat 'Me too!'
              - narrate '<npc.name> gives you some cookies.'
              - give i@cookie qty:6
              - zap 'step:Cookies given'
        'Cookies given':
            click trigger:
                script:
                - chat 'How were the cookies?'
                - zap 'step:Spreading the Word'
    The directory of this script: plugins/Denizen/scripts/Cookies.yml
    However after I type these commands, I see a message in chat:
    [​IMG]
    And this in console:
    Error (open)

    [09:50:29] [Server thread/WARN]: java.lang.NoSuchMethodError: net.citizensnpcs.api.npc.NPC.getOrAddTrait(Ljava/lang/Class;)Lnet/citizensnpcs/api/trait/Trait;
    [09:50:29] [Server thread/WARN]: at com.denizenscript.denizen.utilities.command.NPCCommandHandler.assignment(NPCCommandHandler.java:188)
    [09:50:29] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [09:50:29] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    [09:50:29] [Server thread/WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [09:50:29] [Server thread/WARN]: at java.lang.reflect.Method.invoke(Method.java:498)
    [09:50:29] [Server thread/WARN]: at net.citizensnpcs.api.command.CommandManager.executeMethod(CommandManager.java:159)
    [09:50:29] [Server thread/WARN]: at net.citizensnpcs.api.command.CommandManager.execute(CommandManager.java:91)
    [09:50:29] [Server thread/WARN]: at net.citizensnpcs.api.command.CommandManager.executeSafe(CommandManager.java:187)
    [09:50:29] [Server thread/WARN]: at net.citizensnpcs.Citizens.onCommand(Citizens.java:269)
    [09:50:29] [Server thread/WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
    [09:50:29] [Server thread/WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149)
    [09:50:29] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_16_R2.CraftServer.dispatchCommand(CraftServer.java:756)
    [09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.PlayerConnection.handleCommand(PlayerConnection.java:1697)
    [09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.PlayerConnection.a(PlayerConnection.java:1540)
    [09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.PacketPlayInChat.a(PacketPlayInChat.java:47)
    [09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.PacketPlayInChat.a(PacketPlayInChat.java:1)
    [09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19)
    [09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.TickTask.run(SourceFile:18)
    [09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeTask(SourceFile:144)
    [09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
    [09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeNext(SourceFile:118)
    [09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.MinecraftServer.ba(MinecraftServer.java:941)
    [09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.MinecraftServer.executeNext(MinecraftServer.java:934)
    [09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.awaitTasks(SourceFile:127)
    [09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.MinecraftServer.sleepForTick(MinecraftServer.java:918)
    [09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:850)
    [09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.MinecraftServer.lambda$0(MinecraftServer.java:164)
    [09:50:29] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:748)

    So I don't know how to solve this problem. Who can help me, please?
    Thank you.
     

Share This Page