Examples of sendPrivateText()


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

    Collection<String> queriedNames = checkcommand.getQueriedNames();
    String who = queriedNames.iterator().next(); // We know, we queried exactly one character.

    Collection<String> validNames = checkcommand.getValidNames();
    if (validNames.isEmpty()) {
      player.sendPrivateText(NotificationType.ERROR, "Sorry, " + who + " could not be found.");
      return;
    }

    // get the canonical name
    who = validNames.iterator().next();
View Full Code Here

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

      notifyWorldAboutChanges();
      return true;
    }
    if (user instanceof Player) {
      final Player player = (Player) user;
      player.sendPrivateText("You cannot reach the chest from there.");
    }
    return false;
  }

  @Override
View Full Code Here

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

      if (player.hasQuest(QUEST)) {
        if (player.drop("money", COST)) {
          player.addEvent(new ViewChangeEvent(x, y));
          return true;
        } else {
          player.sendPrivateText("You do not have enough money.");
        }
      } else {
        player.sendPrivateText("You don't know how to use the strange device.");
      }
    }
View Full Code Here

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

          return true;
        } else {
          player.sendPrivateText("You do not have enough money.");
        }
      } else {
        player.sendPrivateText("You don't know how to use the strange device.");
      }
    }
    return false;
  }
}
View Full Code Here

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


    if (sourceplayer != null) {
      // incase source player logged out while waiting we want to avoid NPE
      if(characterExists) {
        sourceplayer.sendPrivateText("postman tells you: Message accepted for delivery");
      } else {
        sourceplayer.sendPrivateText(NotificationType.ERROR, "postman tells you: Sorry, " + target + " could not be found, so your message cannot be stored.");
      }
      sourceplayer.setLastPrivateChatter("postman");
    }
View Full Code Here

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

    if (sourceplayer != null) {
      // incase source player logged out while waiting we want to avoid NPE
      if(characterExists) {
        sourceplayer.sendPrivateText("postman tells you: Message accepted for delivery");
      } else {
        sourceplayer.sendPrivateText(NotificationType.ERROR, "postman tells you: Sorry, " + target + " could not be found, so your message cannot be stored.");
      }
      sourceplayer.setLastPrivateChatter("postman");
    }
   
    return;
View Full Code Here

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

   
    final Player player = (Player) entity;
   
    // The player must be next to the source to start to use it.
    if (!player.nextTo(this)) {
      player.sendPrivateText("You are too far away from " + this.getName()+
        ", try to come closer.");
      return false;
    }

    if (isPrepared(player)) {
View Full Code Here

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

      notifyWorldAboutChanges();
      return true;
    }
    if (user instanceof Player) {
      final Player player = (Player) user;
      player.sendPrivateText("You cannot reach the chest from there.");
    }
    return false;
  }

  //
View Full Code Here

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

          target.update();
          target.notifyWorldAboutChanges();

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

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

      // set the quest
      target.setQuest(questName, newQuestState);

      // notify admin and altered player
      target.sendPrivateText("Admin " + player.getTitle()
          + " changed your state of the quest '" + questName
          + "' from '" + oldQuestState + "' to '" + newQuestState
          + "'");
      player.sendPrivateText("Changed the state of quest '" + questName
          + "' from '" + oldQuestState + "' to '" + newQuestState
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.