Examples of NCPListener


Examples of fr.neatmonster.nocheatplus.components.NCPListener

   * NOTE: For internal use only, DO NOT CALL FROM OUTSIDE.
   *
   * @return the listener
   */
  public static Listener getListener() {
    return new NCPListener() {
      @EventHandler(priority = EventPriority.LOWEST)
      public void onPlayerJoin(final PlayerJoinEvent event) {
        NCPExemptionManager.registerPlayer(event.getPlayer());
      }

View Full Code Here

Examples of fr.neatmonster.nocheatplus.components.NCPListener

    /**
     * Quick solution to hide the listener methods, expect refactoring.
     * @return
     */
    private Listener getCoreListener() {
        return new NCPListener() {
            @EventHandler(priority = EventPriority.NORMAL)
            public void onPlayerLogin(final PlayerLoginEvent event) {
                // (NORMAL to have chat checks come after this.)
                if (event.getResult() != Result.ALLOWED) return;
                final Player player = event.getPlayer();
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.