Package games.stendhal.server.entity.player

Examples of games.stendhal.server.entity.player.Jail


    MockStendhalRPRuleProcessor.get().clearPlayers();

    // create zones needed for correct jail functionality:
    StendhalRPZone jailzone = new StendhalRPZone("knast", 100, 100);
    MockStendlRPWorld.get().addRPZone(jailzone);
    Jail jail = new Jail();
    jail.configureZone(jailzone, null);
    MockStendlRPWorld.get().addRPZone(new StendhalRPZone("-3_semos_jail", 100, 100));
  }
View Full Code Here


  }

  @Override
  protected void perform(final Player player, final RPAction action) {
    final Jail jail = SingletonRepository.getJail();
    final String playerName = action.get(TARGET);
   
    if (playerName != null) {
      final ArrestWarrant warrant = jail.getWarrant(playerName);
     
      if (warrant != null) {
        player.sendPrivateText(warrant.getCriminal() + ": "
            + warrant.getMinutes() + " Minutes because: "
            + warrant.getReason());
      } else {
        player.sendPrivateText(playerName + " is not in jail");
      }
    } else {
      player.sendPrivateText(jail.listJailed());
    }
   
    player.notifyWorldAboutChanges();
  }
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.player.Jail

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.