Citizens Compatibility #293


  • New
  • Defect
Open
Assigned to _ForgeUser7781625
  • Forge_User_29012017 created this issue May 29, 2014

    What steps will reproduce the problem?
    1. Create a citizen NPC
    2. Make him a sentry trait
    3. Kill him

    What is the expected output? What do you see instead?
    To not think that it is a player - it thinks it is and records its stats

    Do you have an error log of what happened? (Portal: check cache/error.txt)
    There is no error

  • Forge_User_29012017 added the tags Defect New May 29, 2014
  • _ForgeUser7781625 posted a comment May 31, 2014

    I'll fix this, but it can take a while because i have lots of other stuff to do at the moment.

  • _ForgeUser7781625 posted a comment Jun 9, 2014

    Sry but i can't reproduce this. Which version of Citizens are you using?

  • _ForgeUser9516547 posted a comment Aug 16, 2014

    This definitely still is an issue, I just updated to the latest versions of all involved plugins (Minecraft v 1.7.10) - but it produced the same errors on all previous versions.

    Any Citizens Sentry NPC is handled as a player (http://screens.pro.digy.eu/albums/userpics/10001/Screenshot_20140816_165450.png) and therefor Statistics tries to capture their kills. But this produces errors in the server log:

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    [14:57:56] [Craft Scheduler Thread - 114/WARN]: Exception in thread "Craft Scheduler Thread - 114" 
    [14:57:56] [Craft Scheduler Thread - 114/WARN]: org.apache.commons.lang.UnhandledException: Plugin Statistics v1.2.2 generated an exception while executing task 9709
        at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
    Caused by: java.lang.NullPointerException
        at com.wolvencraft.yasp.session.OnlineSession.killedCreature(OnlineSession.java:227)
        at com.wolvencraft.yasp.listeners.handlers.DeathHandler$MonsterDeath.run(DeathHandler.java:170)
        at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71)
        at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
        ... 3 more
    
    
    [14:50:16] [Craft Scheduler Thread - 48/WARN]: Exception in thread "Craft Scheduler Thread - 48" 
    [14:50:16] [Craft Scheduler Thread - 48/WARN]: org.apache.commons.lang.UnhandledException: Plugin Statistics v1.2.2 generated an exception while executing task 7188
        at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
    Caused by: java.lang.NullPointerException
        at com.wolvencraft.yasp.db.data.players.MiscInfoPlayerEntry.<init>(MiscInfoPlayerEntry.java:65)
        at com.wolvencraft.yasp.db.data.players.PlayersData.<init>(PlayersData.java:57)
        at com.wolvencraft.yasp.session.OnlineSession$1.run(OnlineSession.java:104)
        at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71)
        at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
        ... 3 more
    

    Edited Aug 16, 2014
  • Forge_User_96951799 unassigned issue from _ForgeUser7823209 Jan 28, 2015
  • Forge_User_96951799 assigned issue to _ForgeUser7781625 Jan 28, 2015

To post a comment, please login or register a new account.