Library NPCLib - Create Fake Players [1.7.9 till 1.8.3]

Discussion in 'Resources' started by Techcable, Feb 4, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    CXdur

    @Techcable

    Any idea how I can solve this?


    Code:
    13:30:53] [Server thread/ERROR]: Error occurred while enabling LsrcrMC-ProjectR v3.0 (Is it up to date?)
    java.lang.NullPointerException
        at me.cxdur.projectr.handlers.NPCHandler.createNPC(NPCHandler.java:86) ~[?:?]
        at me.cxdur.projectr.handlers.NPCHandler.loadNPCsFromDatabase(NPCHandler.java:311) ~[?:?]
        at me.cxdur.projectr.handlers.NPCHandler.createNPCs(NPCHandler.java:79) ~[?:?]
        at me.cxdur.projectr.ProjectR.onEnable(ProjectR.java:212) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) ~[spigot.jar:git-Spigot-1649]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [spigot.jar:git-Spigot-1649]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:417) [spigot.jar:git-Spigot-1649]
        at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476) [spigot.jar:git-Spigot-1649]
        at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:360) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:334) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:290) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:210) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1649]
    [13:30:53] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
    [13:30:53] [Server thread/INFO]: Done (1,301s)! For help, type "help" or "?"
    [13:30:54] [Server thread/WARN]: [LsrcrMC-ProjectR] Task #4 for LsrcrMC-ProjectR v3.0 generated an exception
    java.lang.NullPointerException
        at net.techcable.npclib.nms.NMSNPC.run(NMSNPC.java:154) ~[?:?]
        at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-1649]
        at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:641) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1649]
    
    This is how I do things:


    Code:
        public void createNPC(int id, String name, String skin, Location location, int itemset, int level) {
            NPCRegistry registry = NPCLib.getNPCRegistry("ProjectR", plugin.getInstance());
            NPC npc = registry.createNPC(EntityType.PLAYER, name.replace("*", " "));
          
            npc.getEntity().setMetadata("npcid", new FixedMetadataValue(plugin, id));
      
            setArmor(npc, itemset);
            npc.setProtected(true);
                  
            npc.setSkin(Bukkit.getOfflinePlayer(skin).getUniqueId());
          
            userHandler.setLevel((Player) npc.getEntity(), level);
    
            npcLocation.put(id, location);
        }
    
     
    Last edited: Feb 25, 2015
  2. Offline

    Techcable

    The first error is is because you can't call getEntity before you spawn the NPC. The second error can be safely ignored, but i'm fixing it anyway.
     
  3. Offline

    Oxygened

    Is it possible to use it whitout maven ?
     
  4. Offline

    CXdur

    @Techcable

    Another issue, it is now spamming this error:

    Code:
    [14:26:14] [Server thread/ERROR]: Error occurred while enabling LsrcrMC-ProjectR v3.5 (Is it up to date?)
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.Integer;
        at net.techcable.npclib.nms.NMSNPC.tryEquipmentChangeNotify(NMSNPC.java:166) ~[?:?]
        at net.techcable.npclib.nms.NMSNPC.update(NMSNPC.java:149) ~[?:?]
        at net.techcable.npclib.nms.NMSNPC.spawn(NMSNPC.java:111) ~[?:?]
        at me.cxdur.projectr.handlers.NPCHandler.createNPC(NPCHandler.java:89) ~[?:?]
        at me.cxdur.projectr.handlers.NPCHandler.loadNPCsFromDatabase(NPCHandler.java:317) ~[?:?]
        at me.cxdur.projectr.handlers.NPCHandler.createNPCs(NPCHandler.java:79) ~[?:?]
        at me.cxdur.projectr.ProjectR.onEnable(ProjectR.java:212) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) ~[spigot.jar:git-Spigot-1649]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [spigot.jar:git-Spigot-1649]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:417) [spigot.jar:git-Spigot-1649]
        at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476) [spigot.jar:git-Spigot-1649]
        at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:360) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:334) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:290) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:210) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1649]
    [14:26:14] [Server thread/INFO]: [dynmap] Enabling dynmap v1.9.4-991
    [14:26:14] [Server thread/INFO]: [dynmap] Dynmap is disabled (unsupported platform)
    [14:26:14] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
    [14:26:14] [Server thread/INFO]: Done (3.863s)! For help, type "help" or "?"
    [14:26:15] [Server thread/WARN]: [LsrcrMC-ProjectR] Task #6 for LsrcrMC-ProjectR v3.5 generated an exception
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.Integer;
        at net.techcable.npclib.nms.NMSNPC.tryEquipmentChangeNotify(NMSNPC.java:166) ~[?:?]
        at net.techcable.npclib.nms.NMSNPC.run(NMSNPC.java:154) ~[?:?]
        at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-1649]
        at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:641) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1649]
        at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1649]
    [14:26:15] [Server thread/WARN]: [LsrcrMC-ProjectR] Task #6 for LsrcrMC-ProjectR v3.5 generated an exception
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.Integer;
        at net.techcable.npclib.nms.NMSNPC.tryEquipmentChangeNotify(NMSNPC.java:166) ~[?:?]
    With this code:


    Code:
    public void createNPC(int id, String name, String skin, Location location, int itemset, int level) {
            NPCRegistry registry = NPCLib.getNPCRegistry("ProjectR", plugin.getInstance());
            NPC npc = registry.createNPC(EntityType.PLAYER, name.replace("*", " "));
            npc.setProtected(true);
           
            npc.setSkin(Bukkit.getOfflinePlayer(skin).getUniqueId());
           
            npc.spawn(location);
           
           
            npc.getEntity().setMetadata("npcid", new FixedMetadataValue(plugin, id));
       
            //setArmor(npc, itemset);
    
           
            //userHandler.setLevel((Player) npc.getEntity(), level);
    
            //npcLocation.put(id, location);
        }
    Any idea?
     
  5. Offline

    Techcable

    Some of you have been having trouble with maven, or just didn't want to mess with shading. Now NPCLib is available as a plugin! If you don't want to use maven, just depend on NPCLib in your plugin.yml and tell your users to download it. Of course, maven shading is easier for the admins because they don't have to download and update another plugin.

    Download Page


    @CXdur
    Update to version 1.1.0.
     
  6. Offline

    CXdur

    @Techcable

    I feel like such a noob now, but I've generated another issue somehow.

    Code:
    [21:13:39] [Server thread/ERROR]: Error occurred while enabling LsrcrMC-ProjectR v3.5 (Is it up to date?)
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.minecraft.server.v1_8_R1.Packet;
        at net.techcable.npclib.nms.versions.v1_8_R1.NMS.notifyOfEquipmentChange(NMS.java:166) ~[?:?]
        at net.techcable.npclib.nms.NMSNPC.tryEquipmentChangeNotify(NMSNPC.java:179) ~[?:?]
        at net.techcable.npclib.nms.NMSNPC.update(NMSNPC.java:160) ~[?:?]
        at net.techcable.npclib.nms.NMSNPC.spawn(NMSNPC.java:113) ~[?:?]
        at me.cxdur.projectr.handlers.NPCHandler.createNPC(NPCHandler.java:89) ~[?:?]
        at me.cxdur.projectr.handlers.NPCHandler.loadNPCsFromDatabase(NPCHandler.java:315) ~[?:?]
        at me.cxdur.projectr.handlers.NPCHandler.createNPCs(NPCHandler.java:79) ~[?:?]
        at me.cxdur.projectr.ProjectR.onEnable(ProjectR.java:210) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:356) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:316) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:402) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:370) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:325) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:211) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at java.lang.Thread.run(Thread.java:745) [?:1.7.0_75]
    This is my code:
    Code:
        public void createNPC(int id, String name, String skin, Location location, int itemset, int level) {
            NPCRegistry registry = NPCLib.getNPCRegistry(plugin);
            NPC npc = registry.createNPC(EntityType.PLAYER, name.replace("*", " "));
            npc.setProtected(true);
           
            npc.setSkin(Bukkit.getOfflinePlayer(skin).getUniqueId());
           
            npc.spawn(location);
           
           
            npc.getEntity().setMetadata("npcid", new FixedMetadataValue(plugin, id));
       
            setArmor(npc, itemset);
           
            userHandler.setLevel((Player) npc.getEntity(), level);
    
            npcLocation.put(id, location);
        }
    Any idea? :)
     
  7. Offline

    Techcable

    Are you sure you are using version 1.1.0? (Not Snapshot)
     
  8. Offline

    CXdur

    @Techcable

    Code:
            <!-- NPCLib API -->
            <dependency>
                <groupId>net.techcable</groupId>
                <artifactId>npclib</artifactId>
                <version>1.1.0</version>
                <scope>compile</scope>
            </dependency>
    What exactly is required to use this libary btw?
     
  9. Offline

    Techcable

    I don't understand what you mean.
     
  10. Offline

    CXdur

    @Techcable

    Sorry, getting late which is why I'm leaving these terrible replies:

    Yeah, I'm using the 1.1.0 version as you asked about. Do I have to install any external plugins or anything for this to work?
     
  11. Offline

    Techcable

    This plugin doesn't require any external plugins, but it will use citizens if it is installed.
    To fix the error update to 1.1.1-SNAPSHOT.

    @CactusComboPvP
    @ChipDev
    @viper_monster

    I have a solution to your shading problem, NPCLib can now be installed as a plugin, (read main post for more info).
    This way if you have trouble shading, you can ask your users to install it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 13, 2016
  12. Offline

    Goblom

    Wonderful Library.

    I only have 2 difficulties with it right now.
    • NPCs are invisible on 1.8.3 Client (not tested on other client versions)
    • Any chance you can add command support Player#performCommand
      • Since the npc can already chat all its missing is being able to run a command (which is what im looking for)
     
  13. Offline

    CactusComboPvP

    @Techcable
    I downloaded the plugin in to my plugin folder
    Now i'm getting this error:

    Code:
    [16:17:46 INFO]: MineplexMOD issued server command: /npc
    [16:17:48 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npc'
    in plugin npc v1.0
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spi
    got.jar:git-Spigot-4c2b59a]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:18
    1) ~[spigot.jar:git-Spigot-4c2b59a]
            at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServe
    r.java:643) ~[spigot.jar:git-Spigot-4c2b59a]
            at net.minecraft.server.v1_8_R1.PlayerConnection.handleCommand(PlayerCon
    nection.java:1083) [spigot.jar:git-Spigot-4c2b59a]
            at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java
    :918) [spigot.jar:git-Spigot-4c2b59a]
            at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java
    :26) [spigot.jar:git-Spigot-4c2b59a]
            at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java
    :53) [spigot.jar:git-Spigot-4c2b59a]
            at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spi
    got.jar:git-Spigot-4c2b59a]
            at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [
    ?:1.8.0_25]
            at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_25]
            at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:6
    84) [spigot.jar:git-Spigot-4c2b59a]
            at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:3
    16) [spigot.jar:git-Spigot-4c2b59a]
            at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:6
    25) [spigot.jar:git-Spigot-4c2b59a]
            at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java
    :528) [spigot.jar:git-Spigot-4c2b59a]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]
    Caused by: java.lang.IllegalArgumentException: Invalid UUID string: 613517d731bb
    47bdbc337870d4f3adc5
            at java.util.UUID.fromString(Unknown Source) ~[?:1.8.0_25]
            at net.techcable.npclib.util.ProfileUtils.toUUID(ProfileUtils.java:175)
    ~[?:?]
            at net.techcable.npclib.util.ProfileUtils.deserializeProfile(ProfileUtil
    s.java:153) ~[?:?]
            at net.techcable.npclib.util.ProfileUtils.postNames(ProfileUtils.java:13
    0) ~[?:?]
            at net.techcable.npclib.util.ProfileUtils.lookup(ProfileUtils.java:49) ~
    [?:?]
            at net.techcable.npclib.nms.NMSNPC.setSkin(NMSNPC.java:144) ~[?:?]
            at io.github.cactuscombo.Main.onCommand(Main.java:28) ~[?:?]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spi
    got.jar:git-Spigot-4c2b59a]
    Linr 28:

    Code:
    npc.setSkin("Techcable");
    I got a request, can you please just give me an example pom.xml which works with this???
    please

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 13, 2016
  14. Offline

    Techcable

    NPCs can't currently perform commands.
    I think i found your issue with the invisible NPCs. It involves the ordering of packets on 1.8.
     
  15. Offline

    CactusComboPvP

    @Techcable

    Dude can you give me a working pom.xml for this?? please??
     
  16. Offline

    guitargun

  17. Offline

    Techcable

  18. Offline

    CactusComboPvP

    @Techcable

    even with your new pom, gives me same class not found error, can't you make something we can put in to our plugins source in ide? I really don't want to have a seperate plugin in my folder
     
  19. Offline

    guitargun

  20. Offline

    Techcable

    I am unable to that.
     
  21. Offline

    guitargun

    @Techcable I think I am just an idiot. I want to add another method for the npc creation in the class mentioned above but I don't know how to import the source code. you have any tips?
     
  22. Offline

    Techcable

    Fork the repository and edit the NPC interface. I will add the implementation.
     
  23. @Techcable
    You said in the OP post that there are no external plugins but then isn't npclib its own plugin?? and don't we also need citizens

    how would I teleport the npc to a different location after its spawned? and how would i make the npc invisible?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 13, 2016
  24. Offline

    Techcable

    NPCLib can be installed as an external plugin, or you could maven shade it into your plugin.
    Citizens isn't required, but if it is installed NPCLib will use it instead of using server internals.
    Call the getEntity method on the npc, cast it to a player, and call teleport and apply the invisibility potion effect.
     
  25. Do you know how I would teleport and add the invisibility to the npc just using citizens?
     
  26. Offline

    Techcable

    First of all, this thread isn't about citizens, it is about NPCLib. Secondly what I suggested are methods in the Player class in the bukkit api.
    Here is a code example:
    Code:
    public void teleportAndMakeInvisible(NPC npc, Location toTeleport) { //Asumes npc is spawned
        Player npcPlayer = (Player) npc.getEntity();
        npcPlayer.teleport(toTeleport);
        npcPlayer.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, Integer.MAX_VALUE, 1));
    }
     
  27. Offline

    xTigerRebornx

    @Techcable Any chance you can fix the jenkins so people can get the dev builds? Unable to access it (something about not having permissions to do so and it requiring a login)

    Edit: NPCs are invisible on 1.8.1 as well.
     
    Last edited: Mar 8, 2015
  28. Offline

    Techcable

    I Fixed jenkins issue.

    The problem with the invisible npcs should have been fixed in a recent build, but maven ran out of memory and couldn't put it in the maven repo. Try to build your project again and it should work.
     
  29. Offline

    Techcable

    NPCLib is updated to 1.8.3! (still supports 1.8.0, and 1.7)
    Recompile your plugin if you are using maven or download the latest build from the ci server if you aren't.
     
  30. Offline

    SkillSam

    (First hand, my apologies for posting on a thread that is a few days old)

    Hello, I've been having a problem trying to use your wonderful library on a 1.7.10 (protocol hacked Spigot) server, but there seems to be an error whenever someone joins the server. Perhaps you can take a look?

    The version of your library I'm using is 1.1.1-SNAPSHOT.

    Code:
    [10:40:54] [Server thread/ERROR]: Could not pass event PlayerJoinEvent to tHCFCore v1.0
    org.bukkit.event.EventException
    	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot.jar:git-Spigot-1649]
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-1649]
    	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:514) [spigot.jar:git-Spigot-1649]
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:499) [spigot.jar:git-Spigot-1649]
    	at net.minecraft.server.v1_7_R4.PlayerList.c(PlayerList.java:265) [spigot.jar:git-Spigot-1649]
    	at net.minecraft.server.v1_7_R4.PlayerList.a(PlayerList.java:152) [spigot.jar:git-Spigot-1649]
    	at net.minecraft.server.v1_7_R4.LoginListener.c(LoginListener.java:119) [spigot.jar:git-Spigot-1649]
    	at net.minecraft.server.v1_7_R4.LoginListener.a(LoginListener.java:44) [spigot.jar:git-Spigot-1649]
    	at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:189) [spigot.jar:git-Spigot-1649]
    	at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [spigot.jar:git-Spigot-1649]
    	at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) [spigot.jar:git-Spigot-1649]
    	at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot.jar:git-Spigot-1649]
    	at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1649]
    	at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1649]
    	at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1649]
    Caused by: java.lang.NullPointerException
    	at net.minecraft.util.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:213) ~[spigot.jar:git-Spigot-1649]
    	at net.minecraft.util.com.google.common.collect.Collections2$TransformedCollection.<init>(Collections2.java:256) ~[spigot.jar:git-Spigot-1649]
    	at net.minecraft.util.com.google.common.collect.Collections2.transform(Collections2.java:247) ~[spigot.jar:git-Spigot-1649]
    	at net.techcable.npclib.nms.versions.v1_7_R4.NMS.onJoin(NMS.java:185) ~[?:?]
    	at net.techcable.npclib.nms.NMSRegistry.onJoin(NMSRegistry.java:88) ~[?:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]
    	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:298) ~[spigot.jar:git-Spigot-1649]
    	... 14 more
     
Thread Status:
Not open for further replies.

Share This Page