Examples of clearEvents()


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

    action.put("reason", "whynot");
    action.put("minutes", 1);

    CommandCenter.execute(player, action);
    assertEquals("No character with that name: notexistingplayerxckjvhyxkjcvhyxkjvchk", player.events().get(0).get("text"));
    player.clearEvents();


    MockStendhalRPRuleProcessor.get().addPlayer(player);
    action = new RPAction();
    action.put("type", "jail");
View Full Code Here

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

    action.put("reason", "whynot");
    action.put("minutes", "noNumber");

    CommandCenter.execute(player, action);
    assertEquals("Usage: /jail <name> <minutes> <reason>", player.events().get(0).get("text"));
    player.clearEvents();

   
    action = new RPAction();
    action.put("type", "jail");
    action.put("target", "hugo");
View Full Code Here

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

    action.put("type", "gag");

    CommandCenter.execute(pl, action);

    assertEquals("Usage: /gag name minutes reason", pl.events().get(0).get("text"));
    pl.clearEvents();
    action = new RPAction();
    action.put("type", "gag");
    action.put("target", "name");
    action.put("reason", "whynot");
    action.put("minutes", 1);
View Full Code Here

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

    action.put("minutes", 1);

    CommandCenter.execute(pl, action);
    assertEquals("Player name not found", pl.events().get(0).get("text"));

    pl.clearEvents();

    MockStendhalRPRuleProcessor.get().addPlayer(pl);
    action = new RPAction();
    action.put("type", "gag");
    action.put("target", "hugo");
View Full Code Here

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

    action.put("reason", "whynot");
    action.put("minutes", "noNumber");

    CommandCenter.execute(pl, action);
    assertEquals("Usage: /gag name minutes reason", pl.events().get(0).get("text"));
    pl.clearEvents();

    action = new RPAction();
    action.put("type", "gag");
    action.put("target", "hugo");
    action.put("reason", "whynot");
View Full Code Here

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

   */
  @Test
  public final void testOnDestroyPlayer() {
    final Player pl = PlayerTestHelper.createPlayer("hugo");
    pl.setAdminLevel(5000);
    pl.clearEvents();

    MockStendhalRPRuleProcessor.get().addPlayer(pl);
    final RPAction action = new RPAction();
    action.put("type", "destroy");
    action.put("target", "hugo");
View Full Code Here

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

    testzone.add(npc);
    testzone.add(pl);

    assertEquals(1, npc.getID().getObjectID());
    pl.setAdminLevel(5000);
    pl.clearEvents();

    MockStendhalRPRuleProcessor.get().addPlayer(pl);
    final RPAction action = new RPAction();
    action.put("type", "destroy");
    action.put("target", "#1");
View Full Code Here

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

    final RPAction action = new RPAction();
    action.put(Actions.TYPE, "who");
    final Player player = PlayerTestHelper.createPlayer("player");
    pq.onAction(player, action);
    assertThat(player.events().get(0).get("text"), equalTo("0 Players online: "));
    player.clearEvents();
    MockStendhalRPRuleProcessor.get().addPlayer(player);
    pq.onAction(player, action);
    assertThat(player.events().get(0).get("text"), equalTo("1 Players online: player(0) "));
    player.clearEvents();
View Full Code Here

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

    assertThat(player.events().get(0).get("text"), equalTo("0 Players online: "));
    player.clearEvents();
    MockStendhalRPRuleProcessor.get().addPlayer(player);
    pq.onAction(player, action);
    assertThat(player.events().get(0).get("text"), equalTo("1 Players online: player(0) "));
    player.clearEvents();

    player.setAdminLevel(AdministrationAction.getLevelForCommand("ghostmode") - 1);
    player.setGhost(true);
    pq.onAction(player, action);
    assertThat(player.events().get(0).get("text"), equalTo("0 Players online: "));
View Full Code Here

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

    testzone.add(rat);
    testzone.add(pl);

    assertEquals(1, rat.getID().getObjectID());
    pl.setAdminLevel(5000);
    pl.clearEvents();

    MockStendhalRPRuleProcessor.get().addPlayer(pl);
    final RPAction action = new RPAction();
    action.put("type", "destroy");
    action.put("target", "#1");
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.