Examples of notifyWorldAboutChanges()


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

          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

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

          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

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

                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.