@Override public void fire(Player player, Sentence sentence, EventRaiser npc) { if (board.getPlayerName() != null) { npc.say( "Sorry, " + player.getName() + " there is already a game in progress. Please wait a little."); return; } board.setPlayerName(player.getName()); }
/** * try to remove the content from the world- * * @return <code>true</code> */ @Override public boolean removeFromWorld() { NPCList.get().remove("Paul Sheriff"); zone.remove(npc); board.remove(); return true; }
@Override public void addToWorld() { zone = SingletonRepository.getRPWorld().getZone("0_semos_mountain_n2"); addBoard(); addNPC(); board.setNPC(npc); }