Package com.comphenix.protocol.injector.PacketFilterManager

Examples of com.comphenix.protocol.injector.PacketFilterManager.PlayerInjectHooks


  }
 
  // Unsafe variant of the above
  private PlayerInjector injectPlayerInternal(Player player, Object injectionPoint, ConflictStrategy stategy, GamePhase phase) {
    PlayerInjector injector = playerInjection.get(player);
    PlayerInjectHooks tempHook = getPlayerHook(phase);
    PlayerInjectHooks permanentHook = tempHook;
   
    // The given player object may be fake, so be careful!
   
    // See if we need to inject something else
    boolean invalidInjector = injector != null ? !injector.canInject(phase) : true;
View Full Code Here


   */
  public PlayerInjectHooks getInjectionMethod() throws IllegalArgumentException {
    String text = global.getString(INJECTION_METHOD);
   
    // Default hook if nothing has been set
    PlayerInjectHooks hook = getDefaultMethod();
   
    if (text != null)
      hook = PlayerInjectHooks.valueOf(text.toUpperCase().replace(" ", "_"));
    return hook;
  }
View Full Code Here

      // Setup error reporter
      detailedReporter.addGlobalParameter("manager", protocolManager);
     
      // Update injection hook
      try {
        PlayerInjectHooks hook = config.getInjectionMethod();

        // Only update the hook if it's different
        if (!protocolManager.getPlayerHook().equals(hook)) {
          logger.info("Changing player hook from " + protocolManager.getPlayerHook() + " to " + hook);
          protocolManager.setPlayerHook(hook);
View Full Code Here

TOP

Related Classes of com.comphenix.protocol.injector.PacketFilterManager.PlayerInjectHooks

Copyright © 2018 www.massapicom. 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.