Package games.stendhal.server.core.events

Examples of games.stendhal.server.core.events.LoginListener


        "Mithril Cloak",
        "A shiny and high defence cloak is available for those willing to complete a long list of tasks for the seamstress Ida.",
        false);
   
    // login notifier to teleport away players logging into the twilight zone.
    SingletonRepository.getLoginNotifier().addListener(new LoginListener() {
      public void onLoggedIn(final Player player) {
        TwilightMossScroll scroll = (TwilightMossScroll) SingletonRepository.getEntityManager().getItem("twilight moss");
        scroll.teleportBack(player);
      }
View Full Code Here


   *
   * @param  zone    The zone to be configured.
   * @param  attributes  Configuration attributes.
   */
  public void configureZone(StendhalRPZone zone, Map<String, String> attributes) {
    SingletonRepository.getLoginNotifier().addListener(new LoginListener() {
      public void onLoggedIn(final Player player) {
        BalloonScroll scroll = (BalloonScroll) SingletonRepository.getEntityManager().getItem(BALLOON);
        scroll.teleportBack(player);
      }

View Full Code Here

  @Override
  public void addToWorld() {
    /* login notifier to teleport away players logging into the dream world.
     * there is a note in TimedTeleportScroll that it should be done there or its subclass.
     */
    SingletonRepository.getLoginNotifier().addListener(new LoginListener() {
      public void onLoggedIn(final Player player) {
        RainbowBeansScroll scroll = (RainbowBeansScroll) SingletonRepository.getEntityManager().getItem("rainbow beans");
        scroll.teleportBack(player);
      }

View Full Code Here

TOP

Related Classes of games.stendhal.server.core.events.LoginListener

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.