Examples of RPAction


Examples of marauroa.common.game.RPAction

    final Player bob = PlayerTestHelper.createPlayer("bob");
    MockStendhalRPRuleProcessor.get().addPlayer(pl);
    MockStendhalRPRuleProcessor.get().addPlayer(bob);

    pl.setAdminLevel(5000);
    final RPAction action = new RPAction();
    action.put("type", "teleport");
    action.put("text", "huhu");
    action.put("target", "bob");
    action.put("zone", "non-existing-zone");
    action.put("x", "0");
    action.put("y", "0");

    assertTrue(action.has("target") && action.has("zone")
        && action.has("x"));

    CommandCenter.execute(pl, action);
    // The list of existing zones depends on other tests, so we simply
    // ignore it here.
    assertTrue(pl
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.