Package com.comphenix.protocol.injector.player

Examples of com.comphenix.protocol.injector.player.NetworkObjectInjector.initialize()


      try {
        NetworkObjectInjector created = new NetworkObjectInjector(
            filterImpossibleWarnings(reporter), null, invoker, null);
       
        if (MinecraftReflection.isLoginHandler(connection)) {
          created.initialize(connection);
          created.setPlayer(created.createTemporaryPlayer(server));
        } else if (MinecraftReflection.isServerHandler(connection)) {
          // Get the player instead
          if (playerConnectionPlayer == null)
            playerConnectionPlayer = FuzzyReflection.fromObject(connection).
View Full Code Here


          if (playerConnectionPlayer == null)
            playerConnectionPlayer = FuzzyReflection.fromObject(connection).
                getFieldByType("player", MinecraftReflection.getEntityPlayerClass());
          Object entityPlayer = playerConnectionPlayer.get(connection);
         
          created.initialize(MinecraftReflection.getBukkitEntity(entityPlayer));
         
        } else {
          throw new IllegalArgumentException("Unregonized connection in NetworkManager.");
        }
       
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.