Package games.stendhal.server.entity.player

Examples of games.stendhal.server.entity.player.Player.notifyWorldAboutChanges()


        }
      }
     
      SingletonRepository.getAchievementNotifier().onKill(killer);

      killer.notifyWorldAboutChanges();
    }
  }

  /**
   * This method is called when the entity has been killed ( hp==0 ).
View Full Code Here


        playersRmText.add(player);

        // place the player and his pets into the world
        PlayerTransformer.placePlayerIntoWorldOnLogin(object, player);
        PlayerTransformer.placeSheepAndPetIntoWorld(player);
        player.notifyWorldAboutChanges();
        StendhalRPAction.transferContent(player);

        getOnlinePlayers().add(player);

        if (!player.isGhost()) {
View Full Code Here

      new GameEvent(player.getName(), SUPPORTANSWER, action.get(TARGET), reply).raise();
      if (supported != null) {

        supported.sendPrivateText(NotificationType.SUPPORT, "Support (" + player.getTitle() + ") tells you: " + reply + " \nIf you wish to reply, use /support.");
        supported.notifyWorldAboutChanges();
        SingletonRepository.getRuleProcessor().sendMessageToSupporters(message);
       
      } else {
        // that player is not logged in. Do they exist at all or are they just offline? Try sending a message with postman.
        DBCommand command = new StoreMessageCommand(player.getName(), action.get(TARGET), "In answer to your support question:\n" + reply + " \nIf you wish to reply, use /support.", "S");
View Full Code Here

        SingletonRepository.getTurnNotifier().notifyInSeconds(getDuration(), activity);
      }
    }

    player.notifyWorldAboutChanges();
    return true;
  }

  //
  //
View Full Code Here

        } else {
          killer.setSharedKill(killedName);
        }
      }
     
      killer.notifyWorldAboutChanges();
     
    }
   
  }
 
View Full Code Here

          new GameEvent(player.getName(), ADMINLEVEL, target.getName(), ADMINLEVEL, action.get(NEWLEVEL)).raise();
          target.setAdminLevel(newlevel);
          dropPrivileges(target);
          target.update();
          target.notifyWorldAboutChanges();

          response = "Changed adminlevel of " + target.getTitle()
              + " from " + oldlevel + " to " + newlevel + ".";
          target.sendPrivateText(player.getTitle()
              + " changed your adminlevel from " + +oldlevel
View Full Code Here

          user.sendPrivateText("The consumable item is too far away");
          return false;
        }
      }
      feeder.feed(this, player);
      player.notifyWorldAboutChanges();
      return true;
    } else {
      logger.error("user is no instance of Player but: " + user, new Throwable());
      return false;
    }
View Full Code Here

                wife.teleport(zone, 5, 5, Direction.DOWN, player);
                husband.teleport(zone, 6, 5, Direction.DOWN, player);
                final String scrollmessage = "Linda tells you: Use the scroll in your bag to return to the hotel, our special honeymoon suites are so private that they don't use normal entrances and exits!";
                wife.sendPrivateText(scrollmessage);
                                husband.sendPrivateText(scrollmessage);
                wife.notifyWorldAboutChanges();
                husband.notifyWorldAboutChanges();
                npc.setCurrentState(ConversationStates.IDLE);
              } else {
                npc.say("You each need one space in your bags to take a scroll. Please make a space and then ask me again. Thank you.");
              }
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.