[Solved] AsyncPlayerPreLoginEvent

Discussion in 'Plugin Development' started by lazertester, Aug 5, 2012.

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

    lazertester

    I am running 1.3.1 build 2300 of bukkit.

    I have a registered listener class that has a registered AsyncPlayerLogin event to listen for. It was not firing so I simplified it to the following to test:

    Code:
                @EventHandler (priority = EventPriority.HIGHEST)
        public void onAsyncPlayerPreLoginEvent(AsyncPlayerPreLoginEvent event) {
            MineZ.log("WHAAZUP");
        }
    This is not printing to the console. To verify that the listener is properly registered I added the following event:

    Code:
        @EventHandler(priority = EventPriority.HIGHEST)
        public void onItemInHandChanged(PlayerItemHeldEvent e) {
            MineZ.log("WHAAZUP");
        }
    Which satisfyingly prints "WHAAZUP" to the console repeatedly as I scroll my mouse wheel.

    Any help on getting this event to fire?

    EDIT: Online mode was off on my dev server in favor of an IP whitelist. I thought I tried everything but I was wrong :)
     
  2. Offline

    evilmidget38

    Not exactly the best answer, but try running it with a recommended build, they might not be working perfectly in the latest dev builds.
     
Thread Status:
Not open for further replies.

Share This Page