private boolean alreadyInRequestedMode(final Player player,final RPAction action){
  if (!action.has("mode")) {
    return false;
  }
  boolean requestedMode=Boolean.parseBoolean(action.get("mode"));
  return (requestedMode == player.isGhost());
}

private boolean alreadyInRequestedMode ( final Player player , final RPAction action ) { if ( ! action . has ( "mode" ) ) { return false ; } boolean requestedMode = Boolean . parseBoolean ( action . get ( "mode" ) ) ; return ( requestedMode == player . isGhost ( ) ) ; }
is the player already in teh requested mode ?
