Package games.stendhal.server.entity.player

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


      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

          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


    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

    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

   
    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

      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

          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

      // 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

        + " from player " + player.getName() + ": #" + result;

    admin.sendPrivateText(msg);

    if (result) {
      player.sendPrivateText(msg);
      SingletonRepository.getRuleProcessor().sendMessageToSupporters("JailKeeper", msg);
      new GameEvent(admin.getName(), "admindrop", player.getName(),
          Integer.toString(amount), itemName).raise();
    }
  }
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.